]> source.dussan.org Git - jgit.git/commit
Stream whole deflated objects in PackWriter 24/1024/1
authorShawn O. Pearce <spearce@spearce.org>
Thu, 1 Jul 2010 01:50:50 +0000 (18:50 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Thu, 1 Jul 2010 01:50:50 +0000 (18:50 -0700)
commita0fd06e5c2696cc6bed396fd513ec8e4465e399c
treefa532975a0cb77345c86fa950fce7f2a29c56247
parentad0383734ebdbfb919ba14ca53f7e40501f65cee
Stream whole deflated objects in PackWriter

Instead of loading the entire object as a byte array and passing
that into the deflater, let the ObjectLoader copy the object onto
the DeflaterOutputStream.  This has the nice side effect of using
some sort of stride hack in the Sun implementation that may improve
compression performance.

Change-Id: I3f3d681b06af0da93ab96c75468e00e183ff32fe
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackWriter.java