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.
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
What others are saying
1 more-
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.

Discussion 0
Sign up Sign in to join the discussion
No comments yet. Start the conversation.