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.00643373
Marked as misclassified No
Message-id <>
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
Date User Action Args
2010-05-15 20:53:38pitrousetrecipients: + pitrou, rhettinger, spiv, belopolsky
2010-05-15 20:53:38pitrousetmessageid: <>
2010-05-15 20:53:36pitroulinkissue8685 messages
2010-05-15 20:53:36pitroucreate