Hacker News new | ask | show | jobs
Fedora Cleared to Build Python Package with "-O3" Optimizations (phoronix.com)
11 points by iruoy 769 days ago
2 comments

From "A collection of compiler optimizations with brief descriptions and examples" https://news.ycombinator.com/item?id=40275850 :

> Also, only SO has what specific optimizations are applied for clang's -O1/-O2/-03 args? https://stackoverflow.com/questions/15548023/clang-optimizat...

Intel uses -o2 or -o3 for Clear Linux packages, depending on which produces faster binaries. Worth checking out, if you want more performance.
They also disable journaling and stuff last I looked. It's fine inspiration, but cargo culture has dangers

They make trades that I'm not sure are advisable

-Os usually is the fastest, better than -Ofast
Depends on a bunch of things, including cache sizes