]> source.dussan.org Git - jgit.git/commit
Allow ObjectReuseAsIs to resort objects during writing 58/2358/1
authorShawn O. Pearce <spearce@spearce.org>
Wed, 26 Jan 2011 01:20:08 +0000 (17:20 -0800)
committerShawn O. Pearce <spearce@spearce.org>
Thu, 27 Jan 2011 16:58:55 +0000 (08:58 -0800)
commita017fdf1124144228dd0395d8a36080212644ed5
tree69da3d0d55c1aa41452db69f2cb68cc84c8accb9
parentc218a0760ddcdd9a392b0ae15f99fdccf823cd42
Allow ObjectReuseAsIs to resort objects during writing

It can be very handy for the implementation to resort the
object list based on data locality, improving prefetch in
the operating system's buffer cache.

Export the list to the implementation was a proper List,
and document that its mutable and OK to be modified.  The
only caller in PackWriter is already OK with these rules.

Change-Id: I3f51cf4388898917b2be36670587a5aee902ff10
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/storage/file/WindowCursor.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/ObjectReuseAsIs.java