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!
This commit is contained in:
Antoine Pitrou 2008-12-15 23:01:43 +00:00
parent 2674aacb16
commit 56b3a40e05
1 changed files with 1 additions and 1 deletions

View File

@ -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):