[issue32385] Clean up the C3 MRO algorithm implementation.

Serhiy Storchaka report at bugs.python.org
Wed Dec 20 12:18:17 EST 2017


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

This has also a performance effect.

$ ./python -m perf timeit -s "class A: pass" -s "class B: pass" --duplicate 1000  "class C(A, B): pass"

Before: Mean +- std dev: 9.41 us +- 0.28 us
After:  Mean +- std dev: 8.94 us +- 0.28 us

----------

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


More information about the Python-bugs-list mailing list