Serhiy Storchaka added the comment:
See issue19051. Even preliminary Python implementation noticeable speed up the
reading of short lines.
$ ./python -m timeit -s "import lzma, io" "f=lzma.LZMAFile('words.xz', 'r')"
"for line in f: pass"
Unpatched: 1.44 sec per loop
Patched: 1.06 sec per loop
With C implementation it should be as fast as with BufferedReader.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue18003>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com