reducing prune sync()s
- From
Frank Ch. Eigler <fche@redhat.com>
- Date
- May 29, 2008, 20:57 UTC
- Message-ID
- <20080529205743.GC17123@redhat.com>
Hi -
In at least builtin-prune-packed.c, builtin-prune.c, and guilt-repack.sh, there is an unconditional sync call. On a machine with lots of dirty disk data, writing it to some slow device, this sync can take a long time.
Would there be interest in making this sync disableable with git-config? Or perhaps having the blanket sync be replaced a list of fsync()s for only the relevant git repository files?
- FChE