Message87807
| Author |
pitrou |
| Recipients |
benjamin.peterson, facundobatista, georg.brandl, ncoghlan, nessus42, pitrou, r.david.murray, rhettinger |
| Date |
2009年05月15日.11:34:04 |
| SpamBayes Score |
4.313906e-08 |
| Marked as misclassified |
No |
| Message-id |
<1242387246.57.0.535664194219.issue1152248@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Ok, let me qualify my position a bit:
- -1 for abusing the newline parameter
- -1 for abusing readlines()
- +0 on an additional method ("readchunks" was suggested) which does the
splitting, either on a single character or on a string
Please bear in mind the latter should involve, for each of the C and
Python implementations:
- a generic unoptimized version for BufferedIOBase
- a generic unoptimized version for TextIOBase
- an optimized version for BufferedReader/BufferedRandom
- an optimized version for TextIOWrapper
However, it is certainly an interesting task for someone wanting to play
with C code, optimizations, etc. |
|