Files
git/Documentation
Jeff King fc4937c372 cat-file: add --buffer option
We use a direct write() to output the results of --batch and
--batch-check. This is good for processes feeding the input
and reading the output interactively, but it introduces
measurable overhead if you do not want this feature. For
example, on linux.git:

  $ git rev-list --objects --all | cut -d' ' -f1 >objects
  $ time git cat-file --batch-check='%(objectsize)' \
          <objects >/dev/null
  real    0m5.440s
  user    0m5.060s
  sys     0m0.384s

This patch adds an option to use regular stdio buffering:

  $ time git cat-file --batch-check='%(objectsize)' \
          --buffer <objects >/dev/null
  real    0m4.975s
  user    0m4.888s
  sys     0m0.092s

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2015-06-22 14:55:52 -07:00
..
2015-05-26 13:50:51 -07:00
2015-05-11 14:39:28 -07:00
2014-11-04 13:14:44 -08:00
2015-06-22 14:55:52 -07:00
2013-09-04 12:23:25 -07:00
2014-11-04 13:14:44 -08:00
2014-11-04 13:14:44 -08:00
2015-05-11 14:39:28 -07:00
2015-05-19 13:17:57 -07:00
2013-10-18 13:50:12 -07:00
2013-04-12 12:00:52 -07:00
2015-05-26 13:50:51 -07:00
2014-11-04 13:14:44 -08:00
2015-01-22 13:44:14 -08:00