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 | pitrou |
| Date | 2008年03月23日.23:02:37 |
| SpamBayes Score | 0.3110036 |
| Marked as misclassified | No |
| Message-id | <1206313362.45.0.0209255411774.issue2459@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
loops4.patch adds a mechanism to avoid blocking signal catching in empty loops (such as "for x in it: pass" or "while x: pass"). Much of the speedup is still retained. ./python -m timeit "for x in xrange(10000): pass" Before: 1000 loops, best of 3: 737 usec per loop After: 1000 loops, best of 3: 438 usec per loop ./python -m timeit "x=100" "while x: x -= 1" Before: 10000 loops, best of 3: 21.7 usec per loop After: 100000 loops, best of 3: 16.6 usec per loop ./python Tools/pybench/pybench.py -t ForLoops Before: 364ms per round After: 242ms per round |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008年03月23日 23:02:42 | pitrou | set | spambayes_score: 0.311004 -> 0.3110036 recipients: + pitrou |
| 2008年03月23日 23:02:42 | pitrou | set | spambayes_score: 0.311004 -> 0.311004 messageid: <1206313362.45.0.0209255411774.issue2459@psf.upfronthosting.co.za> |
| 2008年03月23日 23:02:41 | pitrou | link | issue2459 messages |
| 2008年03月23日 23:02:41 | pitrou | create | |