Skip to content

bpo-43166: Disable ceval.c optimizations for Windows debug builds again #32023

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Mar 23, 2022
Merged

bpo-43166: Disable ceval.c optimizations for Windows debug builds again #32023

merged 10 commits into from
Mar 23, 2022

Conversation

neonene
Copy link
Contributor

@neonene neonene commented Mar 21, 2022

Debug builds' optimization could be reconsidered as 3.11a6+ has reduced the stack usage. Disabling on MSVC should fix the build performance regression and make ceval.c debuggable.

test_xml_etree, which is the top stack consumer among 17 tests mentioned in bpo-43271, requires the following bytes:

Optimization x64 x86
Enabled (/Og /Ot) 1,100,000 500,000
Disabled 3,900,000 2,300,000

They include 200,000 bytes usage with /Ob1 (OnlyExplicitInline) option introduced by #10094 for running performance.

https://bugs.python.org/issue43166

@neonene
Copy link
Contributor Author

neonene commented Mar 21, 2022

Small improvement on GitHub test machines.

Build time x64 x86
before (e63894b) 3:15.28 3:10.90
This (1ebe5f4 ) 2:54.56 2:29.58

@zooba zooba merged commit cd05d0a into python:main Mar 23, 2022
@neonene
Copy link
Contributor Author

neonene commented Mar 23, 2022

Thanks!

@neonene neonene deleted the bpo-43166 branch March 23, 2022 01:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants