]> source.dussan.org Git - jgit.git/commit
Honor pack.threads and perform delta search in parallel 15/1115/1
authorShawn O. Pearce <spearce@spearce.org>
Sat, 10 Jul 2010 01:15:50 +0000 (18:15 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Sat, 10 Jul 2010 02:17:30 +0000 (19:17 -0700)
commit74e08350129825c63c1b0c683b402241a844aabb
treed5e31226d86b163a304b30fda6e872e1ef275f18
parenta960d1429eec198a9d46e296c39e9e1aef95c6c7
Honor pack.threads and perform delta search in parallel

If we have multiple CPUs available, packing usually goes faster
when each CPU is assigned a slice of the available search space.
The number of threads to use is guessed from the runtime if it
wasn't set by the caller, or wasn't set in the configuration.

Change-Id: If554fd8973db77632a52a0f45377dd6ec13fc220
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectReader.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/ThreadSafeProgressMonitor.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/storage/file/WindowCursor.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/DeltaCache.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackConfig.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackWriter.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/ThreadSafeDeltaCache.java [new file with mode: 0644]