3 ms·
Did I read the article correctly that the C code was compiled with -O2 and not -O3? Why?
by FartyMcFarter 8y ago
Did I read the article correctly that the C code was compiled with -O2 and not -O3? Why?
- wffurr 8y ago-O3 isn't always strictly faster than -O2. There are different tradeoffs made about memory usage and binary size which interact with CPU caches in interesting ways. I can't speak for the author but at my work we found -O2 to give better results on our OpenGL ES rendering engine.
- bowyakka 8y agocargo --release doe not compile at -O3 either it's at -O2
- steveklabnik 8y agoI believe that’s wrong. cargo build —release —verbose would tell you for sure; I’m not at a computer right now.