diff options
author | Gregory P. Smith <greg@krypto.org> | 2022-02-02 20:15:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-02 20:15:16 (GMT) |
commit | 164a017e13ee96bd1ea1ae79f5ac9e25fe83994e (patch) | |
tree | d3590954116a047264807497fdf5b9fdf13c16a8 /Misc | |
parent | 89a0a90c2e0e685bc70206fc45e4413c4f4411ed (diff) | |
download | cpython-164a017e13ee96bd1ea1ae79f5ac9e25fe83994e.zip cpython-164a017e13ee96bd1ea1ae79f5ac9e25fe83994e.tar.gz cpython-164a017e13ee96bd1ea1ae79f5ac9e25fe83994e.tar.bz2 |
bpo-46576: bpo-46524: Disable compiler optimization within test_peg_generator. (#31015)
Disable compiler optimization within test_peg_generator.
This speed up test_peg_generator by always disabling compiler
optimizations by using -O0 or equivalent when the test is building its
own C extensions.
A build not using --with-pydebug in order to speed up test execution
winds up with this test taking a very long time as it would do
repeated compilation of parser C code using the same optimization
flags as CPython was built with.
This speeds the test up 6-8x on gps-raspbian.
Also incorporate's #31017's win32 conditional and flags.
Co-authored-by: Kumar Aditya kumaraditya303
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Tests/2022-01-29-12-37-53.bpo-46576.-prRaV.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Tests/2022-01-29-12-37-53.bpo-46576.-prRaV.rst b/Misc/NEWS.d/next/Tests/2022-01-29-12-37-53.bpo-46576.-prRaV.rst new file mode 100644 index 0000000..be50fc8 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2022-01-29-12-37-53.bpo-46576.-prRaV.rst @@ -0,0 +1,3 @@ +test_peg_generator now disables compiler optimization when testing +compilation of its own C extensions to significantly speed up the +testing on non-debug builds of CPython. |