]> source.dussan.org Git - jgit.git/commit
Use the ObjectStream size during copyTo 96/1396/2
authorShawn O. Pearce <spearce@spearce.org>
Tue, 24 Aug 2010 19:56:47 +0000 (12:56 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Wed, 25 Aug 2010 00:37:07 +0000 (17:37 -0700)
commitb474de1da381174b0f769c4e1541cd39e5016572
tree6b9f379bc452d0c8d3ace2070ad9e8f46af899b7
parent1c3f3fdbd237f1f344c8ea081a47c698f47a0de6
Use the ObjectStream size during copyTo

If the stream is a delta decompression stream, getting the size
can be expensive.  Its cheaper to get it from the stream itself
rather than from the object loader.

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