NoFOMO
Search 中EN Sign in Sign up

Peaked at #2 Now #3

Bun AOT Trim Option

Jarred Sumner introduces Bun AOT's --trim flag, shrinking a macOS HTTP server binary from 89MB to 25MB.

Rank over time

Key points

  • Bun AOT adds a `--trim` option that deletes unused parts of Bun from the compiled binary, according to @jarredsumner.
  • On macOS, an AOT binary using Bun.serve's HTTP server drops from 89 MB to 25 MB.
  • @jarredsumner says another reason for `--trim` is security, reducing the attack surface area by removing unused features and libraries.

Key points and the reaction summary are written by AI from the posts on this page. Check the original post. How we use AI

Original post

Jarred Sumner @jarredsumner 196.4K followers

Bun AOT also introduces `--trim` which deletes unused parts of Bun from the compiled binary On macOS, a binary that uses Bun.serve’s HTTP server goes from 89 MB to 25 MB https://t.co/BRVetpDKwW
Post image
445likes 9reposts 25replies 11.7Kviews

View on X Save

What others are saying

1 more
  1. Jarred Sumner @jarredsumner 47

    Jarred Sumner says removing unused features from the binary reduces attack surface and improves security.

    View on X

Top replies on X

Sign in to see 3 top replies from X

From @jarredsumner, @zahaibakber, @itsrealakm and others. Spam removed, with English and Chinese translations.

Sign up free Have an account? Sign in

Discussion 0

No comments yet. Start the conversation.

Suggest a source

Is there a first-hand source we're missing, or a topic we should watch? Tell us. Once approved, everyone's board covers it.

@username or profile link