From cecbe0c4578ebdea9b07c8e03b29560aebff3385 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Mon, 15 Dec 2008 23:03:50 +0000 Subject: [PATCH] Merged revisions 67803 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ........ r67803 | antoine.pitrou | 2008-12-16 00:01:43 +0100 (mar., 16 déc. 2008) | 4 lines 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! ........ --- Lib/io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/io.py b/Lib/io.py index af5a144f27ab..96b3e5d4d4b0 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): -- 2.47.3