From: Guido van Rossum Date: Sun, 9 Oct 1994 22:34:40 +0000 (+0000) Subject: fix buffer size X-Git-Tag: v1.1~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=74233b34e183f7b79ad43874144408516083dacf;p=thirdparty%2FPython%2Fcpython.git fix buffer size --- diff --git a/Lib/cmp.py b/Lib/cmp.py index a73b795f8b6b..4ebdfc60a278 100644 --- a/Lib/cmp.py +++ b/Lib/cmp.py @@ -51,7 +51,7 @@ def sig(st): # Return signature (i.e., type, size, mtime) from raw stat data return type, size, mtime def do_cmp(f1, f2): # Compare two files, really - bufsize = 8096 # Could be tuned + bufsize = 8*1024 # Could be tuned fp1 = open(f1, 'r') fp2 = open(f2, 'r') while 1: diff --git a/Lib/cmpcache.py b/Lib/cmpcache.py index d59fa60d0232..494dcc1c4639 100644 --- a/Lib/cmpcache.py +++ b/Lib/cmpcache.py @@ -58,7 +58,7 @@ def sig(st): # def do_cmp(f1, f2): #print ' cmp', f1, f2 # XXX remove when debugged - bufsize = 8096 # Could be tuned + bufsize = 8*1024 # Could be tuned fp1 = open(f1, 'r') fp2 = open(f2, 'r') while 1: