]> source.dussan.org Git - jgit.git/commit
Lazily allocate Deflater in PackWriter 23/1023/1
authorShawn O. Pearce <spearce@spearce.org>
Thu, 1 Jul 2010 01:40:54 +0000 (18:40 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Thu, 1 Jul 2010 01:40:54 +0000 (18:40 -0700)
commitad0383734ebdbfb919ba14ca53f7e40501f65cee
tree7bf98cca2b6b3e4df711e1e00c8d85412bb14ed2
parent23e7f6376ada54b1be232b15366d850d3038b95f
Lazily allocate Deflater in PackWriter

Only allocate the Deflater if we can't reuse everything, but also
make sure we release it when we release the PackWriter's resources.

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