[issue40077] Convert static types to PyType_FromSpec()

Dong-hee Na report at bugs.python.org
Sat Mar 28 22:05:45 EDT 2020


Dong-hee Na <donghee.na92 at gmail.com> added the comment:

It shown 1% slower for performance.

+--------------------------+-----------------+----------------------------+
| Benchmark                | master-subclass | bpo-40077-subclass         |
+==========================+=================+============================+
| bench _abc_subclasscheck | 295 ns          | 300 ns: 1.01x slower (+1%) |
+--------------------------+-----------------+----------------------------+

+--------------------------+-------------------+----------------------------+
| Benchmark                | master-isinstance | bpo-40077-isinstance       |
+==========================+===================+============================+
| bench _abc_instancecheck | 229 ns            | 232 ns: 1.01x slower (+1%) |
+--------------------------+-------------------+----------------------------+

----------

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


More information about the Python-bugs-list mailing list