]> source.dussan.org Git - jgit.git/commit
PackWriter: Only search for base objects on thin packs 77/3977/1
authorShawn O. Pearce <spearce@spearce.org>
Mon, 8 Aug 2011 15:50:13 +0000 (08:50 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 8 Aug 2011 22:10:11 +0000 (15:10 -0700)
commit99e6cfb131bb407247acbc8c0a73e7c7cf37ebc2
treeac73dd8bf7ebe051bb805dda53b7815476e3af5f
parent489604aaad8ef8d252bf31056db4de01e690fa0b
PackWriter: Only search for base objects on thin packs

A non-thin pack does not need to worry about preferred bases, the pack
will be self-contained and all required delta base objects will appear
within the pack itself. Obtaining the path buffer and length from the
ObjectWalk to build the preferred base table is "expensive", so avoid
the cost unless a thin pack is being constructed.

Change-Id: I16e30cd864f4189d4304e7957a7cd5bdb9e84528
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackWriter.java