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
:)
-
-
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 :)
-
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.
- 2 more replies
New conversation -
-
-
I'm very not aware of these things but I wonder if there's a easy to scan reference on what the default allocators are for rust supported target platforms.
-
I think they all use the system allocator now, right? However for example on FreeBSD the system allocator is jemalloc.
End of conversation
New conversation -
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.