[New-bugs-announce] [issue23445] Use -Og for debug builds

Antoine Pitrou report at bugs.python.org
Wed Feb 11 17:28:42 CET 2015


New submission from Antoine Pitrou:

Recent gcc versions have an optimization level named "-Og". It enables all optimizations that do not break debugging. Here is a patch that uses it on debug builds.

Without the patch I get the following time for the whole test suite:

$ time ./python -m test -j12
[...]
real	3m51.670s
user	11m53.039s
sys	0m28.300s

With the patch it goes down to:

real	2m36.378s
user	7m13.743s
sys	0m29.728s

So the test suite is 33% faster to pass.

----------
components: Build, Tests
files: og.patch
keywords: patch
messages: 235754
nosy: pitrou
priority: normal
severity: normal
stage: patch review
status: open
title: Use -Og for debug builds
type: enhancement
versions: Python 3.4, Python 3.5
Added file: http://bugs.python.org/file38098/og.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23445>
_______________________________________


More information about the New-bugs-announce mailing list