Make git-svn fetch ~1.7x faster
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest9 patches 14 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | Add tests for git cat-filet/ | +91 | 1 reply | |
| 2/9 | git-cat-file: Small refactor of cmd_cat_filebuiltin-cat-file.c | +22 | 0 replies | |
| 3/9 | git-cat-file: Make option parsing a little more flexiblebuiltin-cat-file.c | +30 | 0 replies | |
| 4/9 | git-cat-file: Add --stdin optionDocumentation/ builtin-cat-file.c t/ | +41 | 0 replies | |
| 5/9 | git-cat-file: Add --separator optionDocumentation/ builtin-cat-file.c t/ | +66 | 2 replies | |
| 6/9 | Add tests for git hash-objectt/ | +27 | 1 reply | |
| 7/9 | git-hash-object: Add --stdin-paths optionDocumentation/ hash-object.c t/ | +54 | 4 replies | |
| 8/9 | Git.pm: Add command_bidi_pipe and command_close_bidi_pipeperl/ | +56 | 0 replies | |
| 9/9 | git-svn: Make fetch ~1.7x fastergit-svn.perl | +72 | 3 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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(-)
--