]> source.dussan.org Git - jgit.git/commit
Do not delta compress objects that have already tried to compress. 11/7211/2
authorColby Ranger <cranger@google.com>
Mon, 13 Aug 2012 20:52:33 +0000 (13:52 -0700)
committerColby Ranger <cranger@google.com>
Mon, 13 Aug 2012 21:29:28 +0000 (14:29 -0700)
commitb77ba049762e4ea3aadb756dad1d06c859bb3fe3
tree477d0b3da1e4aca90a0891541013529992dc038c
parent02113f7411df6d680aa520803ac8c63009696c3a
Do not delta compress objects that have already tried to compress.

If an object is in a pack file already, delta compression will not
attempt to re-compress it. This assumes that the previous
packing already performed the optimal compression attempt, however,
the subclasses of StoredObjectRepresentation may use other heuristics
to determine if the stored format is optimal.

Change-Id: I403de522f4b0dd2667d54f6faed621f392c07786
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/DeltaWindow.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/ObjectToPack.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackWriter.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/StoredObjectRepresentation.java