Skip to content

Commit fd65da7

Browse files
committed
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 <[email protected]>
1 parent 87e11fa commit fd65da7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

transport-helper.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,7 @@ static int fetch_with_import(struct transport *transport,
567567
}
568568
}
569569
strbuf_release(&buf);
570+
run_auto_maintenance(transport->verbose < 0);
570571
return 0;
571572
}
572573

0 commit comments

Comments
 (0)