]> source.dussan.org Git - jgit.git/commit
Disable topological sorting in PackWriter 85/885/3
authorShawn O. Pearce <spearce@spearce.org>
Tue, 15 Jun 2010 01:31:14 +0000 (18:31 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Thu, 24 Jun 2010 00:32:41 +0000 (17:32 -0700)
commit60aae90d4d15d6b35d19941867dad966ddcbe161
tree03797727be26ec31eb938b3131722fc283b840aa
parentccd0c0c911b4575539ea46a3efaf219a249ee392
Disable topological sorting in PackWriter

Its not strictly required that we sort topologically in order to
produce a valid pack file.  This was just something that Linus
thought would be a good idea to do.  In practice its not that
important for most repositories.  Local file IO quickly falls
out of the pattern that topological sorting provides any sort
of benefit for, so expending extra resources to enforce it when
we make a pack isn't really worth it.

I'm removing this sort in the pipeline because later changes
would support really efficient COMMIT_TIME_DESC sorting on a
non-file storage system, but TOPO sorting would be a bit more
ugly to run, due to the in-memory delays it imposes.

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