summaryrefslogtreecommitdiff
path: root/blob.h
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2006-05-15 15:40:05 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-05-15 19:31:21 (GMT)
commit4e8da1958111796d55ad63b229ebd3ae6c54bf87 (patch)
tree97580ee1c4eb067840da9d8bbb1e49c45b188129 /blob.h
parent6d6776cb497ea7fbf5fe43912dbe3286f76c9933 (diff)
downloadgit-4e8da1958111796d55ad63b229ebd3ae6c54bf87.zip
git-4e8da1958111796d55ad63b229ebd3ae6c54bf87.tar.gz
git-4e8da1958111796d55ad63b229ebd3ae6c54bf87.tar.bz2
simple euristic for further free packing improvements
Given that the early eviction of objects with maximum delta depth may exhibit bad packing on its own, why not considering a bias against deep base objects in try_delta() to mitigate that bad behavior. This patch adjust the MAX_size allowed for a delta based on the depth of the base object as well as enabling the early eviction of max depth objects from the object window. When used separately, those two things produce slightly better and much worse results respectively. But their combined effect is a surprising significant packing improvement. With this really simple patch the GIT repo gets nearly 15% smaller, and the Linux kernel repo about 5% smaller, with no significantly measurable CPU usage difference. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'blob.h')
0 files changed, 0 insertions, 0 deletions