[issue23269] Tighten-up search loops in sets
Serhiy Storchaka
report at bugs.python.org
Sun Jan 25 22:11:21 CET 2015
Serhiy Storchaka added the comment:
What timing results?
There is large chance that first tested entry is empty. May be worth to move this test outside of the loop as in the set_lookup function.
"i &= mask;" may be moved to the start of the loop.
----------
Added file: http://bugs.python.org/file37858/tight2a.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23269>
_______________________________________
More information about the Python-bugs-list
mailing list