[issue30907] speed up comparisons to self for built-in containers

Serhiy Storchaka report at bugs.python.org
Fri Jul 21 11:53:41 EDT 2017


Serhiy Storchaka added the comment:

I don't have any objections to closing this. The net benefit is contradictory, the maintenance cost is not zero. In many performance important cases (dictionary lookup, searching in sequences) the identity already is checked before calling the comparison method.

Maybe it is worth to remove the fast patch from slice_richcompare() or speed up the general case, but this is a different issue.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30907>
_______________________________________


More information about the Python-bugs-list mailing list