[New-bugs-announce] [issue42808] Add PyType_Type.tp_vectorcall for type(obj) performance

Dennis Sweeney report at bugs.python.org
Sat Jan 2 05:00:06 EST 2021


New submission from Dennis Sweeney <sweeney.dennis650 at gmail.com>:

# common case
.\python.bat -m pyperf timeit "type(17)"
Master: 49.9 ns +- 1.8 ns ---> PR: 33.3 ns +- 1.4 ns

# uncommon case
.\python.bat -m pyperf timeit "type('A', (object, ), {})"
Master: 5.14 us +- 0.04 us ---> PR: 5.43 us +- 0.06 us

----------
components: Interpreter Core
messages: 384218
nosy: Dennis Sweeney
priority: normal
severity: normal
status: open
title: Add PyType_Type.tp_vectorcall for type(obj) performance
type: performance
versions: Python 3.10

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


More information about the New-bugs-announce mailing list