2 ms·
> you should normally optimise for speed, not binary size IME optimize for speed vs size usually isn't as clear cut as the name says though, sometimes smaller
by flohofwoe 3y ago
> you should normally optimise for speed, not binary size
IME optimize for speed vs size usually isn't as clear cut as the name says though, sometimes smaller code does indeed run faster, but in most cases I've seen there's not much of a difference between -O3, -O2, -Os and -Oz.
- kibwen 3y agoWeirdly, most of the time I find that -O3 produces smaller binaries than -Oz.