Use git cat-file --batch and git log --name-status to avoid repeated fork+exec #12

Merged
merged 3 commits into from Nov 19, 2011

2 participants

@andersk

This significantly improves performance, especially for a Git repository stored on a network filesystem with many loose objects, by launching fewer copies of git and hence reading the repository fewer times.

andersk added some commits Oct 20, 2011
@andersk andersk GitCore: Abstract out __pipe
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
aa80f45
@andersk andersk Use git cat-file --batch, to avoid repeated fork+exec
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
0283ffb
@andersk andersk last_change: Use git log --name-status to avoid repeated fork+exec
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
9541c2a
@hvr
Owner

Good work, thanks!

@hvr hvr merged commit 722342e into hvr:master Nov 19, 2011
@hvr
Owner

@andersk Could you maybe take a look at http://trac-hacks.org/ticket/9560 this commit seems to have broken Python 2.5 support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment