]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
fix buffer size
authorGuido van Rossum <guido@python.org>
Sun, 9 Oct 1994 22:34:40 +0000 (22:34 +0000)
committerGuido van Rossum <guido@python.org>
Sun, 9 Oct 1994 22:34:40 +0000 (22:34 +0000)
Lib/cmp.py
Lib/cmpcache.py

index a73b795f8b6b59451460a66bcd6fbc9a14a5e298..4ebdfc60a278ae8b6895cb73e5b0fda0694995de 100644 (file)
@@ -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:
index d59fa60d023282510963d5014f2cb9f6fc3cd5aa..494dcc1c4639f09fde92a5d377712e6d2916b749 100644 (file)
@@ -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: