4 ms·
I really like executable shrinking posts. However, isn't it the case that the size of the executable won't increase significantly if you use --release to distri
by grenoire 10y ago
I really like executable shrinking posts. However, isn't it the case that the size of the executable won't increase significantly if you use --release to distribute bigger programs? After all the size comes from the library and memory allocator being included in the executable. As long as the libraries are not heavy, the executable should stay reasonably small.
- kbenson 10y agoThat matches my (amateur) understanding of how it works. The executable would increase by small amounts because presumably your own code is a relatively small portion of all the code included in the default binary. Then again, since it's not dynamically linking, every crate you use increases the size...
- steveklabnik 10y agoYes, the debuginfo might be linear, but the other stuff is constant.