bpo-46576: bpo-46524: Disable compiler optimization within test_peg_generator. by gpshead · Pull Request #31015 · python/cpython · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
bpo-46576: Disable compiler optimization within test_peg_generator.
This speed up test_peg_generator by always disabling compiler
optimizations by using -O0 by default 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.
  • Loading branch information
gpshead committed Jan 29, 2022
commit efbb64963df71ea0d54225e7dc2cb95eb44c4557
3 changes: 3 additions & 0 deletions Tools/peg_generator/pegen/build.py