Richard Oudkerk added the comment: Alternative patch (readall-chunks.patch) which delegates to RawIOBase.readall() if the file cannot be stat-ed or appears to have size zero.
amount = 1 MB; time taken = 0.02 secs; rate = 64.10 MB/s amount = 2 MB; time taken = 0.02 secs; rate = 128.21 MB/s amount = 4 MB; time taken = 0.03 secs; rate = 128.20 MB/s amount = 8 MB; time taken = 0.05 secs; rate = 170.94 MB/s amount = 16 MB; time taken = 0.09 secs; rate = 170.94 MB/s amount = 32 MB; time taken = 0.16 secs; rate = 205.13 MB/s amount = 64 MB; time taken = 0.30 secs; rate = 215.92 MB/s amount = 128 MB; time taken = 0.58 secs; rate = 221.76 MB/s ---------- Added file: http://bugs.python.org/file26960/readall-chunks.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15758> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com