builtin-bundle.c - use stream buffered input for rev-list
commit442b67a55972e69a054eb1206bbbdf044532130a
authorMark Levedahl <mdl123@verizon.net>
Fri, 10 Aug 2007 22:29:49 +0000 (10 18:29 -0400)
committerJunio C Hamano <gitster@pobox.com>
Sat, 11 Aug 2007 05:20:35 +0000 (10 22:20 -0700)
tree67280643f9f8be2cb1fe1cbc7412144699e21ee4
parentc06793a4ed1bf81902c324d1ed88dd055c3aa468
builtin-bundle.c - use stream buffered input for rev-list

git-bundle create on cygwin was nearly unusable due to 1 character
at a time (unbuffered) reading from an exec'ed process. Fix by using
fdopen to get a buffered stream.

Results for "time git bundle create test.bdl v1.0.3..v1.5.2" are:

before this patch:
         cygwin         linux
real    1m38.828s      0m3.578s
user    0m12.122s      0m2.896s
sys     1m28.215s      0m0.692s

after this patch:
real    0m3.688s       0m2.835s
user    0m3.075s       0m2.731s
sys     0m1.075s       0m0.149s

Signed-off-by: Mark Levedahl <mdl123@verizon.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-bundle.c