This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients pitrou, rhettinger, serhiy.storchaka, tim.peters
Date 2015-01-18.08:21:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1421569260.52.0.392411525467.issue23259@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2015-01-18 08:21:00serhiy.storchakasetrecipients: + serhiy.storchaka, tim.peters, rhettinger, pitrou
2015-01-18 08:21:00serhiy.storchakasetmessageid: <1421569260.52.0.392411525467.issue23259@psf.upfronthosting.co.za>
2015-01-18 08:21:00serhiy.storchakalinkissue23259 messages
2015-01-18 08:21:00serhiy.storchakacreate