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 <rep...@bugs.python.org> <http://bugs.python.org/issue23259> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com