summaryrefslogtreecommitdiffstats
path: root/Lib/io.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2008-12-15 23:01:43 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2008-12-15 23:01:43 (GMT)
commit56b3a40e057954f4bdbf8e432755980a226900aa (patch)
tree0548d0795e61d78e0ae3c376e75acbadc8bbe7b9 /Lib/io.py
parent2674aacb16243573239f4926764cfba39babb4f5 (diff)
downloadcpython-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/io.py')
-rw-r--r--Lib/io.py2
1 files changed, 1 insertions, 1 deletions
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 @@ 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):