[Python-Dev] Re: PEP 620: Hide implementation details from the C API

2020年6月30日 01:39:00 -0700

On 2020年6月29日 23:31:31 -0700
Emily Bowman <[email protected]> wrote:
> On Mon, Jun 29, 2020 at 7:41 PM Raymond Hettinger <
> [email protected]> wrote: 
> 
> > Perhaps you don't want to believe the results, but the timings are
> > careful, stable, repeatable, and backed-up by a disassembly that shows the
> > exact cause. The builds used for the timings were the production macOS
> > builds as distributed on python.org.
> > 
> 
> This points more to specific builds needing to be fixed, if their build
> options result in significantly un-optimized code on the same cpu
> architecture.
I agree in this specific instance _PyType_GetFlags() should definitely
get inlined. The whole point of the type check flags is to make
instance checks for built-in types such as long or tuple faster than by
the regular algorithm.
Regards
Antoine.
_______________________________________________
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/OQ33UEN7BPWEZ7P5IY7JB6N5HZ4OWHFP/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to