Get the latest tech news

Behind the scenes of Bun Install


Learn how Bun is able to cut install times by up to 25×. Bun skips Node.js's overhead with direct system calls, cache-friendly data layouts, OS-level copy-on-write, and full-core parallelism.

In this post we’ll explore what that means: from minimizing syscalls and caching manifests as binary, to optimizing tarball extraction, leveraging OS-native file copying, and scaling across CPU cores. Each time threads coordinate (e.g., when accessing the task queue or signaling back to the event loop), a futex system call can be used to manage locks or waits. npm gave us a foundation to build on, yarn made managing workspaces less painful, and pnpm came up with a clever way to save space and speed things up with hardlinks.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of scenes

scenes

Photo of bun install

bun install

Related news:

News photo

Get behind the scenes at TechCrunch Disrupt 2025 by volunteering

News photo

Behind the scenes and front-row access: Volunteer at TechCrunch Disrupt 2025 while you still can

News photo

The wait for extended Jurassic Park: Survival gameplay continues, but here's a behind-the-scenes video