Message127915
| Author |
pitrou |
| Recipients |
Laurens, amaury.forgeotdarc, dsm001, eric.smith, pitrou |
| Date |
2011年02月04日.18:19:59 |
| SpamBayes Score |
0.0006515864 |
| Marked as misclassified |
No |
| Message-id |
<1296843596.3774.12.camel@localhost.localdomain> |
| In-reply-to |
<1296843005.88.0.261989456349.issue11114@psf.upfronthosting.co.za> |
| Content |
> Here is a proof-of-concept patch for the pure Python version of
> TextIOWrapper.tell(). It turns the O(CHUNK_SIZE) operation into an
> O(1) operation most of time (still O(CHUNK_SIZE) worst-case - weird
> decoders and/or crazy input).
Actually, that's wrong. The patch is still O(CHUNK_SIZE) but with a
vastly different multiplier (and, optimistically, much smaller, as
common codecs are codecs in C). |
|