On Wed, 1 Jul 2020 12:50:01 +0200
Victor Stinner <[email protected]> wrote:
> Le mer. 1 juil. 2020 à 03:53, Inada Naoki <[email protected]> a écrit :
> > I confirmed the performance regression, although the difference is 12%.
> > And I find the commit cause the regression.
> >
> > https://github.com/python/cpython/commit/45ec5b99aefa54552947049086e87ec01bc2fc9a
> > https://bugs.python.org/issue40170
> >
> > The regression is not caused by "static inline" function is not
> > inlined by compiler.
> > The commit changed PyType_HasFeature to call regular function
> > PyType_GetFlags always.  
> 
> On Fedora 32 with GCC 10.1.1, even if PyType_GetFlags() is a function,
> the function call is inlined. This is thanks to LTO

How does this help third-party extensions?

_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/B7NN4YZTD5667OC7NIWYELHMZCJD5JWK/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to