mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
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:
parent
2674aacb16
commit
56b3a40e05
1 changed files with 1 additions and 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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue