git-pack-objects: cache small deltas between big objects
commit074b2eea296886e179ef73e1c364f370a223618a
authorMartin Koegler <mkoegler@auto.tuwien.ac.at>
Mon, 28 May 2007 21:20:58 +0000 (28 23:20 +0200)
committerJunio C Hamano <junkio@cox.net>
Tue, 29 May 2007 08:24:42 +0000 (29 01:24 -0700)
tree5ea794870257a6f5441f9837889a0c5927862f20
parenta588d88aaff312f3afd5713ffcb4e4b1829fb5a6
git-pack-objects: cache small deltas between big objects

Creating deltas between big blobs is a CPU and memory intensive task.
In the writing phase, all (not reused) deltas are redone.

This patch adds support for caching deltas from the deltifing phase, so
that that the writing phase is faster.

The caching is limited to small deltas to avoid increasing memory usage very much.
The implemented limit is (memory needed to create the delta)/1024.

Signed-off-by: Martin Koegler <mkoegler@auto.tuwien.ac.at>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/config.txt
builtin-pack-objects.c