]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #23269: Tighten search_loop in set_insert_clean()
authorRaymond Hettinger <python@rcn.com>
Tue, 27 Jan 2015 05:33:48 +0000 (21:33 -0800)
committerRaymond Hettinger <python@rcn.com>
Tue, 27 Jan 2015 05:33:48 +0000 (21:33 -0800)
commit3037e84ad14424759298966579dbcce77a212621
tree8a72e713241aec0e8c9761d161df70d89362c373
parent618e315f9399fe7497e8ba139b9ef7e03357cdb4
Issue #23269:  Tighten search_loop in set_insert_clean()

Instead of masking and shifting every loopup, move the wrap-around
test outside of the inner-loop.
Objects/setobject.c