[Python-checkins] r67804 - in python/branches/release30-maint: Lib/io.py

antoine.pitrou python-checkins at python.org
Tue Dec 16 00:03:52 CET 2008


Author: antoine.pitrou
Date: Tue Dec 16 00:03:50 2008
New Revision: 67804

Log:
Merged revisions 67803 via svnmerge from 
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  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!
........


Modified:
   python/branches/release30-maint/   (props changed)
   python/branches/release30-maint/Lib/io.py

Modified: python/branches/release30-maint/Lib/io.py
==============================================================================
--- python/branches/release30-maint/Lib/io.py	(original)
+++ python/branches/release30-maint/Lib/io.py	Tue Dec 16 00:03:50 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