[Python-checkins] r68407 - sandbox/trunk/io-c/_textio.c

antoine.pitrou python-checkins at python.org
Thu Jan 8 17:02:54 CET 2009


Author: antoine.pitrou
Date: Thu Jan  8 17:02:54 2009
New Revision: 68407

Log:
Change chunk size so that it is >= buffer size of the buffered IO layer
(which itself is equal to the filesystem block size by default)



Modified:
   sandbox/trunk/io-c/_textio.c

Modified: sandbox/trunk/io-c/_textio.c
==============================================================================
--- sandbox/trunk/io-c/_textio.c	(original)
+++ sandbox/trunk/io-c/_textio.c	Thu Jan  8 17:02:54 2009
@@ -517,7 +517,7 @@
     if (errors == NULL)
         errors = "strict";
 
-    self->chunk_size = 2048;
+    self->chunk_size = 8192;
     self->readuniversal = (newline == NULL || newline[0] == '\0');
     self->line_buffering = line_buffering;
     self->readtranslate = (newline == NULL);


More information about the Python-checkins mailing list