[issue23259] Remove dummy reuse optimization from sets
Serhiy Storchaka
report at bugs.python.org
Sun Jan 18 09:21:00 CET 2015
Serhiy Storchaka added the comment:
In some cases the slowdown is over 100x.
$ ./python -m timeit -s "s = set(range(10**4))" -- "s.discard(0); s.add(0)"
Unpatched: 1000000 loops, best of 3: 1.68 usec per loop
Patched: 10000 loops, best of 3: 183 usec per loop
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23259>
_______________________________________
More information about the Python-bugs-list
mailing list