I was curious to know how the new default allocator usage in #rustlang 1.32.0 would affect bin sizes on osx. Here's a default "hello world" bin before and after https://gist.github.com/softprops/7711e1717ee6b21a06f8316149348c05 … . Binsize went from 576k to 280k for a 296K savings. Not bad
:)
-
Show this thread
-
I'm curious to know if this difference is about the same on other OSes or if other OSes use jemalloc by default and this diff is less noticeable
1 reply 0 retweets 0 likesShow this thread -
Replying to @softprops
Stripped release binary size goes from 420K to 196K for a 224K saving on x86_64-unknown-linux-gnu https://gist.github.com/wezm/4211679041d9b3abe447679e98c224cd …
2 replies 0 retweets 1 like -
Replying to @wezm
Very cool. Stripping is a neat trick but I'm mainly trying to showcase what you get for free with the latest stable release. I want small(er) bins by default :)
1 reply 0 retweets 0 likes -
Replying to @softprops
Non stripped sizes are in the gist too. The debug symbols massively bloat the binary, which is why I stripped them. Release build is 3.9M down to 2.3M unstripped.
1 reply 0 retweets 1 like -
Replying to @wezm @softprops
I've a question, why rust was using jemalloc infavor of default system allocator and switched now? Any article from rust on that change? I'm curious
1 reply 0 retweets 0 likes
The 1.32 announcement post gives a little bit of background https://blog.rust-lang.org/2019/01/17/Rust-1.32.0.html …
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.