Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 74233b3

Browse files
committed
fix buffer size
1 parent 705d517 commit 74233b3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/cmp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def sig(st): # Return signature (i.e., type, size, mtime) from raw stat data
5151
return type, size, mtime
5252

5353
def do_cmp(f1, f2): # Compare two files, really
54-
bufsize = 8096 # Could be tuned
54+
bufsize = 8*1024 # Could be tuned
5555
fp1 = open(f1, 'r')
5656
fp2 = open(f2, 'r')
5757
while 1:

Lib/cmpcache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def sig(st):
5858
#
5959
def do_cmp(f1, f2):
6060
#print ' cmp', f1, f2 # XXX remove when debugged
61-
bufsize = 8096 # Could be tuned
61+
bufsize = 8*1024 # Could be tuned
6262
fp1 = open(f1, 'r')
6363
fp2 = open(f2, 'r')
6464
while 1:

0 commit comments

Comments
 (0)