Sorry, something went wrong.
|
For comparison, here's the timings against "normal" classes... we're still some way off 🙃 A lot closer than we were in 3.11, though. >python -m timeit "isinstance(0, int)"
Running PGUpdate|x64 interpreter...
10000000 loops, best of 5: 27.4 nsec per loop
>python -m timeit "issubclass(str, int)"
Running PGUpdate|x64 interpreter...
10000000 loops, best of 5: 34.6 nsec per loop
|
Sorry, something went wrong.
Before:
After:
Timings done using a fresh PGO-optimised build on Windows with the main branch.