Always auto-gc after calling a fast-import transport
commit99919cc51d3328bfd2a9c4fd9b255c26808cdf81
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 9 Apr 2012 18:04:35 +0000 (9 13:04 -0500)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Mon, 22 Oct 2012 12:31:29 +0000 (22 13:31 +0100)
tree905ada0685508987dec398d336d6cc7499bcd8bc
parent96a825e92d858380785102c3ec6129e6cb9bbe47
Always auto-gc after calling a fast-import transport

After importing anything with fast-import, we should always let the
garbage collector do its job, since the objects are written to disk
inefficiently.

This brings down an initial import of http://selenic.com/hg from about
230 megabytes to about 14.

In the future, we may want to make this configurable on a per-remote
basis, or maybe teach fast-import about it in the first place.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
transport-helper.c