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 | amaury.forgeotdarc |
|---|---|
| Recipients | amaury.forgeotdarc, georg.brandl, ggenellina, inducer, rhettinger, tim.peters |
| Date | 2007年11月27日.18:04:16 |
| SpamBayes Score | 0.027452681 |
| Marked as misclassified | No |
| Message-id | <1196186657.6.0.698765727839.issue1045@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
The slowdown is due to the new function _PyObject_LengthHint: on my Win2K machine, the command python -m timeit "tuple(1 for _ in xrange(3))" answers: 100000 loops, best of 3: 4.14 usec per loop By adding a line "return rv;" on the second line of _PyObject_LengthHint, I get: 100000 loops, best of 3: 2.71 usec per loop Should we disable this function for some known built-in types? |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2007年11月27日 18:04:18 | amaury.forgeotdarc | set | spambayes_score: 0.0274527 -> 0.027452681 recipients: + amaury.forgeotdarc, tim.peters, georg.brandl, rhettinger, ggenellina, inducer |
| 2007年11月27日 18:04:18 | amaury.forgeotdarc | set | spambayes_score: 0.0274527 -> 0.0274527 messageid: <1196186657.6.0.698765727839.issue1045@psf.upfronthosting.co.za> |
| 2007年11月27日 18:04:17 | amaury.forgeotdarc | link | issue1045 messages |
| 2007年11月27日 18:04:17 | amaury.forgeotdarc | create | |