Open utam0k opened 1 year ago
Just a Note :
opt-level = 2
to root Cargo.toml reduces the size from 8.2 to 7.9 MBstrip
further reduces size :
Not sure if stripping away the symbols an stuff is a good idea or not though.
You can strip symbols out into a separate file. This is pretty common in C/C++ where you'll often find "dbg" packages for most software, which basically just installs the debug symbols for the respective package. This means you have the option whether or not you want to have the symbols or not. The symbols are generally only useful for sorting through a core dump, which would be a good reason to keep the symbols around, but not ship them by default in the release binary.
I'm curious what the space-time trade off is between optimization 2 and 3. I think it's worth considering adding this to the build steps. I'm familiar with how to do this.
The goal is to drop the current 8 MB to 5 MB at the time of the latest release.
Reference