Message 105823 - Python tracker (original) (raw)
Message105823
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:38 | pitrou | set | recipients: + pitrou, rhettinger, spiv, belopolsky |
2010-05-15 20:53:38 | pitrou | set | messageid: 1273956818.32.0.786833508331.issue8685@psf.upfronthosting.co.za |
2010-05-15 20:53:36 | pitrou | link | issue8685 messages |
2010-05-15 20:53:36 | pitrou | create |