mercurial/changegroup.py
changeset 30212 260af19891f2
parent 30211 6b0741d6d234
child 30267 d92777f98524
--- a/mercurial/changegroup.py	Fri Oct 14 01:31:11 2016 +0200
+++ b/mercurial/changegroup.py	Sun Oct 16 13:35:23 2016 -0700
@@ -93,7 +93,9 @@
             if vfs:
                 fh = vfs.open(filename, "wb")
             else:
-                fh = open(filename, "wb")
+                # Increase default buffer size because default is usually
+                # small (4k is common on Linux).
+                fh = open(filename, "wb", 131072)
         else:
             fd, filename = tempfile.mkstemp(prefix="hg-bundle-", suffix=".hg")
             fh = os.fdopen(fd, "wb")