[issue24681] Put most likely test first in set_add_entry()

STINNER Victor report at bugs.python.org
Wed Jul 22 14:41:31 CEST 2015


STINNER Victor added the comment:

> You can benchmark if you want.

No, you have to provide a benchmark if you want to modify the Python core to optimize it. Otherwise, modifying the code is pointless.

It's a general rule in Python to optimize code. We don't accept optimization changes if it has no effect on performances.

----------

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


More information about the Python-bugs-list mailing list