Fedora Cleared to Build Python Package with "-O3" Optimizationsphoronix.com 11 pointsiruoy2 years ago5 commentsSaveHideCopy link On HNComments−westurner2yFrom "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... −scns2yIntel uses -o2 or -o3 for Clear Linux packages, depending on which produces faster binaries. Worth checking out, if you want more performance.−bravetraveler2yThey also disable journaling and stuff last I looked. It's fine inspiration, but cargo culture has dangersThey make trades that I'm not sure are advisable−rurban2y-Os usually is the fastest, better than -Ofast−kibibu2yDepends on a bunch of things, including cache sizes
Comments
From "A collection of compiler optimizations with brief descriptions and examples" https://news.ycombinator.com/item?id=40275850 :
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