Message87807
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. |
|
Date |
User |
Action |
Args |
2009-05-15 11:34:06 | pitrou | set | recipients:
+ pitrou, georg.brandl, rhettinger, facundobatista, ncoghlan, benjamin.peterson, nessus42, r.david.murray |
2009-05-15 11:34:06 | pitrou | set | messageid: <1242387246.57.0.535664194219.issue1152248@psf.upfronthosting.co.za> |
2009-05-15 11:34:04 | pitrou | link | issue1152248 messages |
2009-05-15 11:34:04 | pitrou | create | |
|