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 pitrou
Recipients belopolsky, pitrou, rhettinger, spiv
Date 2010-05-15.20:53:36
SpamBayes Score 0.0064337254
Marked as misclassified No
Message-id <1273956818.32.0.786833508331.issue8685@psf.upfronthosting.co.za>
In-reply-to
Content
The current patch gives much smaller benefits than the originally posted benchmarks, although they are still substantial:

$ ./python -m timeit -s "a = set(range(100000)); sd = a.difference; b = set(range(1000))" "sd(b)"
- before: 5.56 msec per loop
- after: 3.18 msec per loop

$ ./python -m timeit -s "a = set(range(1000000)); sd = a.difference; b = set(range(10))" "sd(b)"
- before: 67.9 msec per loop
- after: 41.8 msec per loop
History
Date User Action Args
2010-05-15 20:53:38pitrousetrecipients: + pitrou, rhettinger, spiv, belopolsky
2010-05-15 20:53:38pitrousetmessageid: <1273956818.32.0.786833508331.issue8685@psf.upfronthosting.co.za>
2010-05-15 20:53:36pitroulinkissue8685 messages
2010-05-15 20:53:36pitroucreate