[issue45115] Windows: enable compiler optimizations when building Python in debug mode

2021-09-07 Thread STINNER Victor
STINNER Victor added the comment: Steve: > I strongly disagree. If CI needs to be faster, please just change the CI > configuration. If contributors have to wait a few minutes longer, they can > wait - they'll save that time in local compilations. > Local debugging absolutely relies on debug

[issue45115] Windows: enable compiler optimizations when building Python in debug mode

2021-09-06 Thread Dong-hee Na
Change by Dong-hee Na : -- Removed message: https://bugs.python.org/msg401202 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue45115] Windows: enable compiler optimizations when building Python in debug mode

2021-09-06 Thread Dong-hee Na
Dong-hee Na added the comment: I sent the patch for this issue: https://github.com/python/mypy/pull/11067 -- nosy: +corona10 ___ Python tracker ___ ___

[issue45115] Windows: enable compiler optimizations when building Python in debug mode

2021-09-06 Thread Steve Dower
Steve Dower added the comment: I strongly disagree. If CI needs to be faster, please just change the CI configuration. If contributors have to wait a few minutes longer, they can wait - they'll save that time in local compilations. Local debugging absolutely relies on debug builds. You'd be

[issue45115] Windows: enable compiler optimizations when building Python in debug mode

2021-09-06 Thread STINNER Victor
STINNER Victor added the comment: I recently documented the "Python debug build": https://docs.python.org/dev/using/configure.html#python-debug-build -- ___ Python tracker ___

[issue45115] Windows: enable compiler optimizations when building Python in debug mode

2021-09-06 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +26610 pull_request: https://github.com/python/cpython/pull/28128 ___ Python tracker ___ __

[issue45115] Windows: enable compiler optimizations when building Python in debug mode

2021-09-06 Thread STINNER Victor
STINNER Victor added the comment: This change is motivated by my PR 28128 which converts the Py_TYPE() macro to a static inline function. The problem is that by default, MSC disables inlining and test_exceptions does crash with a stack overflow, since my change increases the usage of the sta

[issue45115] Windows: enable compiler optimizations when building Python in debug mode

2021-09-06 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +26609 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28181 ___ Python tracker ___ _

[issue45115] Windows: enable compiler optimizations when building Python in debug mode

2021-09-06 Thread STINNER Victor
New submission from STINNER Victor : The Visual Studio project of Python, PCBuild\ directory, disables compiler optimizations when Python is built in debug mode. It seems to be the default in Visual Studio. Disabling compiler optimizations cause two kinds of issues: * It increases the stack