Skip to content

Make git-svn fetch ~1.7x faster

Adam Roben git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9Add tests for git cat-filet/t1005-cat-file.sh+91 -01 reply
2/9git-cat-file: Small refactor of cmd_cat_filebuiltin-cat-file.c+22 -160 replies
3/9git-cat-file: Make option parsing a little more flexiblebuiltin-cat-file.c+30 -120 replies
4/9git-cat-file: Add --stdin optionDocumentation/git-cat-file.txt builtin-cat-file.c t/t1005-cat-file.sh+41 -50 replies
5/9git-cat-file: Add --separator optionDocumentation/git-cat-file.txt builtin-cat-file.c t/t1005-cat-file.sh+66 -52 replies
6/9Add tests for git hash-objectt/t1006-hash-object.sh+27 -01 reply
7/9git-hash-object: Add --stdin-paths optionDocumentation/git-hash-object.txt hash-object.c t/t1006-hash-object.sh+54 -24 replies
8/9Git.pm: Add command_bidi_pipe and command_close_bidi_pipeperl/Git.pm+56 -00 replies
9/9git-svn: Make fetch ~1.7x fastergit-svn.perl+72 -223 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/9] Make git-svn fetch ~1.7x faster

This patch series makes git-svn fetch about 1.7x faster by reducing the number of forks/execs that occur for each file retrieved from Subversion. To do so, a few new options are added to git-cat-file and git-hash-object to allow continuous input on stdin and continuous output on stdout, so that one instance of each of these commands can be kept running for the duration of the fetch.

The series is based on top of next. I considered basing it on top of the parse_options work since I touch the option parsing in these two commands, but I didn't know how wise it would be to base a patch series on something in pu.

I tried to add some new tests for cat-file and hash-object to ensure that I didn't break old behavior, but I'm not very experienced with the git test suite and I'm sure my tests could use some improvement. This is the most invasive change I've yet made to git, so comments are more than welcome.

-Adam

--

 Documentation/git-cat-file.txt    |   11 +++-
 Documentation/git-hash-object.txt |    5 +-
 builtin-cat-file.c                |   96 +++++++++++++++++++++----
 git-svn.perl                      |   94 +++++++++++++++++++------
 hash-object.c                     |   29 ++++++++-
 perl/Git.pm                       |   56 +++++++++++++++
 t/t1005-cat-file.sh               |  139 +++++++++++++++++++++++++++++++++++++
 t/t1006-hash-object.sh            |   49 +++++++++++++
 8 files changed, 438 insertions(+), 41 deletions(-)

--