Message40548
Logged In: YES
user_id=562624
The version of the patch still makes a file an iterator but it no
longer depends on xreadlines - it implements the readahead
buffering inside the file object.
It is about 19% faster than xreadlines for normal text files and
about 40% faster for files with 100k lines.
The methods readline and read do not use this readahead
mechanism because it skews the current file position (just like
xreadlines does).
|
|
Date |
User |
Action |
Args |
2007-08-23 15:14:05 | admin | link | issue580331 messages |
2007-08-23 15:14:05 | admin | create | |
|