Bug 2279768

Summary: Python built with gcc -O3
Product: [Fedora] Fedora Reporter: Aoife Moloney <amoloney>
Component: Changes TrackingAssignee: Miro Hrončok <mhroncok>
Status: CLOSED COMPLETED QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: mhroncok, torsava
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python3.13-3.13.0~b1-1.fc41 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-11-06 13:31:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2244836    
Bug Blocks: 2233686    

Description Aoife Moloney 2024-05-08 15:58:27 UTC
This is a tracking bug for Change: Python built with gcc -O3
For more details, see: https://fedoraproject.org/wiki/Changes/Python_built_with_gcc_O3

Instead of Fedora's default -O2 compiler flag, we will use -O3 to build CPython.
This only impacts the interpreter and Python standard library, not any 3rd party extension modules built as RPM or on developer machines.
This aligns with the way Python is built upstream.
According to our performance measurements, it makes Python significantly faster (pyperformance geometric mean: 1.04x faster).

If you encounter a bug related to this Change, please do not comment here. Instead create a new bug and set it to block this bug.

Comment 1 Tomas Orsava 2024-05-22 12:21:33 UTC
This is now live in Python 3.13. Waiting for Python 3.13 to become the main Python before considering backports to other places.

Comment 2 Miro Hrončok 2024-06-12 15:17:40 UTC
Python 3.13 is the main Python now.