]> source.dussan.org Git - jgit.git/commit
Allow ObjectReuseAsIs to have more control over write ordering 24/1224/4
authorShawn O. Pearce <spearce@spearce.org>
Tue, 3 Aug 2010 00:00:35 +0000 (17:00 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Sat, 21 Aug 2010 00:59:36 +0000 (17:59 -0700)
commit28ba4747bc166243ecff86cdc7460cbc969a8eb4
treebf40c64c33cecaa389f50722d31e3b1a3eb462a3
parentfe18e521955e9b7011b0ed460a6f2c1901b8ae57
Allow ObjectReuseAsIs to have more control over write ordering

The reuse system used by an object database may be able to benefit
from knowing what objects are coming next, and even improve data
throughput by delaying (or moving up) objects that are stored near
each other in the source database.

Pushing the iteration down into the reuse code makes it possible
for a smarter implementation to aggregate reuse.  But for the
standard pack file format on disk we don't bother, its quite
efficient already.

Change-Id: I64f0048ca7071a8b44950d6c2a5dfbca3be6bba6
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
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/ObjectToPack.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackOutputStream.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackWriter.java