Antoine Pitrou added the comment: > > So why not simply use BufferedReader? > > Because we want good performance LZMAFile and compatibility with older > versions.
You're reading me wrong. I'm simply suggesting that users interested in readline() performance wrap LZMAFile in a BufferedReader. The documentation can mention it. > And I guess that it will be even faster than wrapping in > BufferedReader (due to the avoiding of double buffering). Let's wait for the numbers, then. The performance increase would have to be quite large to justify such code duplication. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18003> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com