[issue28618] Decorate hot functions using __attribute__((hot)) to optimize Python
STINNER Victor
report at bugs.python.org
Sat Nov 5 11:37:45 EDT 2016
STINNER Victor added the comment:
Antoine Pitrou added the comment:
> Can you compare against a PGO build?
Do you mean comparison between current Python with PGO and patched
Python without PGO?
The hot attribute is ignored by GCC when PGO compilation is used.
> Ubuntu 14.04 is old, and I don't think this is something we should worry about.
Well, it's a practical issue for me to run benchmarks for speed.python.org.
Moreover, I like the idea of getting a fast(er) Python even when no
advanced optimization techniques like LTO or PGO is used. At least,
it's common to build quickly Python using "./configure && make" for a
quick benchmark.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28618>
_______________________________________
More information about the Python-bugs-list
mailing list