Fedora Cleared To Build Python Package With "-O3" Optimizations

Written by Michael Larabel in Fedora on 6 May 2024 at 09:38 AM EDT. 24 Comments
FEDORA
The Fedora Engineering and Steering Committee (FESCo) has signed off on the plans for Fedora 41 to build its Python using the "-O3" compiler optimization level rather than the "-O2" default for Fedora packages in the name of better performance.

There's been a proposal with Fedora 41 to use the -O3 compiler flag for better optimizations than the existing -O2 for the Python build. The -O3 optimization level is what upstream Python uses for its release builds and is proven that "it makes Python significantly faster" across a range of benchmarks/workloads. On a geo mean basis this makes Fedora's Python around 4% faster while some individual benchmarks see much more significant improvements.

Python logo


The change proposal is summed up as:
"Faster Python, faster Fedora."

FESCo has approved the -O3 optimization level change for Python to happen with the in-development Fedora 41.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week