diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2008-12-15 23:01:43 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2008-12-15 23:01:43 (GMT) |
commit | 56b3a40e057954f4bdbf8e432755980a226900aa (patch) | |
tree | 0548d0795e61d78e0ae3c376e75acbadc8bbe7b9 /Lib | |
parent | 2674aacb16243573239f4926764cfba39babb4f5 (diff) | |
download | cpython-56b3a40e057954f4bdbf8e432755980a226900aa.zip cpython-56b3a40e057954f4bdbf8e432755980a226900aa.tar.gz cpython-56b3a40e057954f4bdbf8e432755980a226900aa.tar.bz2 |
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!
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/io.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1373,7 +1373,7 @@ class TextIOWrapper(TextIOBase): write contains a newline character. """ - _CHUNK_SIZE = 128 + _CHUNK_SIZE = 2048 def __init__(self, buffer, encoding=None, errors=None, newline=None, line_buffering=False): |