commit | 56b3a40e057954f4bdbf8e432755980a226900aa | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Mon Dec 15 23:01:43 2008 +0000 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Mon Dec 15 23:01:43 2008 +0000 |
tree | 0548d0795e61d78e0ae3c376e75acbadc8bbe7b9 | |
parent | 2674aacb16243573239f4926764cfba39babb4f5 [diff] [blame] |
Issue #4663: increase the chunk size to improve TextIOWrapper performance on small reads. Text I/O is still 10x to 100x slower than 2.x!
diff --git a/Lib/io.py b/Lib/io.py index af5a144..96b3e5d 100644 --- a/Lib/io.py +++ b/Lib/io.py
@@ -1373,7 +1373,7 @@ write contains a newline character. """ - _CHUNK_SIZE = 128 + _CHUNK_SIZE = 2048 def __init__(self, buffer, encoding=None, errors=None, newline=None, line_buffering=False):