[Python-Dev] buildbot's are needlessly compiling -O0

Matthias Klose doko at ubuntu.com
Thu Nov 28 17:24:59 CET 2013

Am 24.11.2013 08:13, schrieb Gregory P. Smith:
> our buildbots are setup to configure --with-pydebug which also
> unfortunately causes them to compile with -O0... this results in a python
> binary that is excruciatingly slow and makes the entire test suite run take
> a long time.
> given that nobody is ever going to run a gdb or another debugger on the
> buildbot generated transient binaries themselves how about we speed all of
> the buildbot's up by adding CFLAGS=-O2 to the configure command line?
> Sure, the compile step will take a bit longer but that is dwarfed by the
> test time as it is:
> http://buildbot.python.org/all/builders/AMD64%20Ubuntu%20LTS%203.x/builds/3224
> http://buildbot.python.org/all/builders/ARMv7%203.x/builds/7
> http://buildbot.python.org/all/builders/AMD64%20Snow%20Leop%203.x/builds/639
> It should dramatically decrease the turnaround latency for buildbot results.

maybe check if the compiler understands -Og (GCC 4.8), and use that?  Otoh, it
would be good to check with -O2 or -O3 too, common values used when building
python for production use.


More information about the Python-Dev mailing list