]> source.dussan.org Git - jgit.git/commit
Added caching for loose object lookup during pack indexing 28/228/2
authorConstantine Plotnikov <constantine.plotnikov@gmail.com>
Thu, 21 Jan 2010 18:06:54 +0000 (21:06 +0300)
committerShawn O. Pearce <spearce@spearce.org>
Thu, 21 Jan 2010 18:16:42 +0000 (10:16 -0800)
commitcc64794b245a094175d817bce6b581d4dddb47cf
tree8494326b1893ef7813c6a59672d83937480509b0
parent86e0c1e036d4a04e396947842d4760fb6efb23ea
Added caching for loose object lookup during pack indexing

On Windows systems, file system lookup is a slow operation, so
checking each object if it exists during indexing (after receiving
the pack) could take a siginificant time. This patch introduces
CachedObjectDirectory that pre-caches lookup results.

Bug: 300397
Change-Id: I471b93f9bb3ee173eb37cae1d75e9e4eb49985e7
Signed-off-by: Constantine Plotnikov <constantine.plotnikov@gmail.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/lib/AlternateRepositoryDatabase.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/CachedObjectDatabase.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/lib/CachedObjectDirectory.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectDatabase.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectDirectory.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/IndexPack.java