Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by bitbasher

4 months ago

The original post/blog said a debug hello world was 3.7MB. I confirmed the post.

A release build is:

426K Feb 21 15:28 target/release/helloworld

If you use lto, codegen-units = 1 and strip then you get:

323K Feb 21 15:30 target/release/helloworld

0 comments

bitbasher

Reply

No comments yet

Contribute on Hacker News ↗

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities