Skip to content
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

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

Merged
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 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

Include/pyport.h Outdated Show resolved Hide resolved
PCbuild/_freeze_module.vcxproj Outdated Show resolved Hide resolved
@zooba zooba merged commit cd05d0a into python:main Mar 23, 2022
11 checks passed
@neonene
Copy link
Contributor Author

@neonene neonene commented Mar 23, 2022

Thanks!

@neonene neonene deleted the bpo-43166 branch Mar 23, 2022
asvetlov added a commit to YvesDup/cpython that referenced this issue Mar 25, 2022
…thonGH-32023)

Also increases the stack allocation when run with `python_d.exe` to account for the extra stack checks that are added.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants