]> source.dussan.org Git - jgit.git/commit
Remove DFS locality ordering during packing 57/11857/2
authorShawn Pearce <sop@google.com>
Fri, 12 Apr 2013 14:05:20 +0000 (07:05 -0700)
committerShawn Pearce <sop@google.com>
Fri, 12 Apr 2013 14:10:30 +0000 (07:10 -0700)
commit65f44bef236f072b23b87a2a68b87635cad3e81a
tree04e97739457eafa006125baede74541fd7474185
parent4955301fac54d8c28a1c0c7bc60c88462588b0ff
Remove DFS locality ordering during packing

PackWriter generally chooses the order for objects when it builds the
object lists.  This ordering already depends on history information to
guide placing more recent objects first and historical objects last.

Allow PackWriter to make the basic ordering decisions, instead of
trying to override them.  The old approach of sorting the list caused
DfsReader to override any ordering change PackWriter might have tried
to make when repacking a repository.

This now better matches with WindowCursor's implementation, where
PackWriter solely determines the object ordering.

Change-Id: Ic17ab5631ec539f0758b962966c3a1823735b814
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsObjectRepresentation.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsObjectToPack.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsReader.java