[issue38980] Compile libpython with -fno-semantic-interposition

STINNER Victor report at bugs.python.org
Tue Jun 30 08:45:35 EDT 2020


STINNER Victor <vstinner at python.org> added the comment:

We wrote an article about -fno-semantic-interposition flag that we use with GCC on RHEL8 and Fedora:
https://developers.redhat.com/blog/2020/06/25/red-hat-enterprise-linux-8-2-brings-faster-python-3-8-run-speeds/
"Enabling this flag disables semantic interposition, which can increase run speed by as much as 30%."

In short, the flag allows the compiler to inline code and so make further optimizations, when Python is built with --enable-shared.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38980>
_______________________________________


More information about the Python-bugs-list mailing list