[Python-checkins] r67803 - python/branches/py3k/Lib/io.py
antoine.pitrou
python-checkins at python.org
Tue Dec 16 00:01:43 CET 2008
Author: antoine.pitrou
Date: Tue Dec 16 00:01:43 2008
New Revision: 67803
Log:
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!
Modified:
python/branches/py3k/Lib/io.py
Modified: python/branches/py3k/Lib/io.py
==============================================================================
--- python/branches/py3k/Lib/io.py (original)
+++ python/branches/py3k/Lib/io.py Tue Dec 16 00:01:43 2008
@@ -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):
More information about the Python-checkins
mailing list