Loading video...

Video Failed to Load

Go Home

In the next version of Bun Enabling profile-guided optimization for bytecode improves startup time by up to 2x `bun build --compile --bytecode --bytecode-order=./file`

19,675 views • 14 days ago •via X (Twitter)

15 Comments

Bun's profile picture
Bun14 days ago

See the "profile guided bytecode layout" section of the docs

Ceoz's profile picture
Ceoz14 days ago

I can't believe 3 is less than 12 This is clearly a psyop

John Rood's profile picture
John Rood14 days ago

the order file is a lockfile for startup: pinned to the trace you profiled, quietly stale as code paths change. regenerate it per release, or the 2x decays with nothing failing.

Frenly Fren's profile picture
Frenly Fren14 days ago

So even vibe coder will understand – probably...

Muhammad Fiaz's profile picture
Muhammad Fiaz14 days ago

Video is hilarious 😂 but interesting improvements

Don Paquito's profile picture
Don Paquito14 days ago

make @claudeai code faster already

anytan's profile picture
anytan13 days ago

bytecode startup up to 2x tho. yeah I'll take that

Rohan's profile picture
Rohan14 days ago

Does that profile stay valid if the workload shape changes later?

Gregor's profile picture
Gregor14 days ago

Hit this with a build script last month. Tight, predictable startup paths captured most of the gain, but anything with dynamic requires at boot barely moved. Does the --bytecode-order profile account for that, or is the 2x mostly on linear startup paths?

Rapid's profile picture
Rapid14 days ago

🤓

Marcello's profile picture
Marcello14 days ago

but, does it have electrolytes? 👀

Ismail's profile picture
Ismail14 days ago

This is funny 🤣

Calvin's profile picture
Calvin14 days ago

That's a lot of megabytes!

any's profile picture
any14 days ago

why is this not default?

Deep S Shah🇮🇳's profile picture
Deep S Shah🇮🇳14 days ago

The team is getting good with the explanation videos 🔥

Related Videos