Message234226
| 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:00 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, tim.peters, rhettinger, pitrou |
| 2015年01月18日 08:21:00 | serhiy.storchaka | set | messageid: <1421569260.52.0.392411525467.issue23259@psf.upfronthosting.co.za> |
| 2015年01月18日 08:21:00 | serhiy.storchaka | link | issue23259 messages |
| 2015年01月18日 08:21:00 | serhiy.storchaka | create |
|