]> arthur.barton.de Git - bup.git/commit
git.CatPipe: set a buffer size on the subprocess to increase performance.
authorCarsten Bormann <cabo@tzi.org>
Thu, 6 Jan 2011 21:38:10 +0000 (13:38 -0800)
committerAvery Pennarun <apenwarr@gmail.com>
Thu, 6 Jan 2011 21:38:10 +0000 (13:38 -0800)
commit9aa4a3824c3c2ae038f1b9efcc886f74e06d86da
tree092e69dfef49c70b3ee4fd327aae4db50d866aa7
parentf7b6a9abdcbec4b82d6fdd4962a79172cedae3ed
git.CatPipe: set a buffer size on the subprocess to increase performance.

apenwarr: I modified Carsten's patch slightly, since "line mode" is not
really appropriate.  On my system, this patch (or Carsten's) can read 111
megabytes in 1.7 seconds instead of 2.1 seconds, or 65MB/sec instead of 52
MB/sec.

Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
lib/bup/git.py