Skip navigation
In the next version of Bun
0:00 / 0:33

In the next version of Bun

Bun

@bunjavascript84K followers

Visit on X
410 likesDownloadOriginal post

20,564 views

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`

15 Comments

Comments from the original post on X (Twitter)

  • Bun's profile picture

    @bunjavascript

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

    24 likes

  • Ceoz's profile picture

    @Ceoz_1

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

    5 likes

  • John Rood's profile picture

    @johnroodepic

    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.

    1 like

  • Frenly Fren's profile picture

    @speakimancer

    So even vibe coder will understand – probably...

    1 like

  • Muhammad Fiaz's profile picture

    @muhammadfiaz_

    Video is hilarious 😂 but interesting improvements

    1 like

  • Don Paquito's profile picture

    @soulgoldman

    make @claudeai code faster already

    1 like

  • anytan's profile picture

    @anytanreal

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

  • Rohan's profile picture

    @proxy_vector

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

  • Gregor's profile picture

    @bygregorr

    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

    @0xRapid

    🤓

  • Marcello's profile picture

    @marcelscherf

    but, does it have electrolytes? 👀

  • Ismail's profile picture

    @yany1wn

    This is funny 🤣

  • Calvin's profile picture

    @calvintelos

    That's a lot of megabytes!

  • any's profile picture

    @anyxnow

    why is this not default?

  • Deep S Shah🇮🇳's profile picture

    @deepss1

    The team is getting good with the explanation videos 🔥