dan-t / rusty-tags

Create ctags/etags for a cargo project
Other
408 stars 32 forks source link

Enable Link-Time Optimization for release builds #70

Closed brainplot closed 4 years ago

brainplot commented 4 years ago

LTO produces slightly smaller binaries and can potentially make it faster as well due to the removal of unused code. It lengthens compilation by a few seconds but that shouldn't be a big issue since it's only performed on release builds.

On my Linux system, it shaves 200kB off the end binary. I didn't benchmark it since rusty-tags is already very fast.