You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Clean up the C3 MRO algorithm implementation. #76566
The C3 MRO algorithm implementation uses lists and converts input tuples to lists. This is redundant, because these lists are not mutated. The proposed PR makes the implementation using tuples and gets rid of unneeded conversions.
Activity
serhiy-storchaka commentedon Dec 20, 2017
The C3 MRO algorithm implementation uses lists and converts input tuples to lists. This is redundant, because these lists are not mutated. The proposed PR makes the implementation using tuples and gets rid of unneeded conversions.
serhiy-storchaka commentedon Dec 20, 2017
This has also a performance effect.
Before: Mean +- std dev: 9.41 us +- 0.28 us
After: Mean +- std dev: 8.94 us +- 0.28 us
serhiy-storchaka commentedon Dec 20, 2017
New changeset 6b91a59 by Serhiy Storchaka in branch 'master':
bpo-32385: Clean up the C3 MRO algorithm implementation. (bpo-4942)
6b91a59