Dispose of RevCommit buffers when they aren't used in PackWriter
commitb8c4ed895527e1551fc707a0e25e350d47dc1e6e
authorShawn O. Pearce <spearce@spearce.org>
Thu, 25 Dec 2008 02:11:09 +0000 (24 18:11 -0800)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sun, 4 Jan 2009 00:06:07 +0000 (4 01:06 +0100)
treee0f58ae0a2824af49fce839118eba8c52e75b747
parent439d441b08009a82d6d95ee2428c72ffc6ce8b4c
Dispose of RevCommit buffers when they aren't used in PackWriter

We don't need the commit buffer, so we might as well throw it
away immediately to reduce the total memory usage within the
writer process.

The same goes for the buffers within UploadPack when its doing
a check to see if it has a complete base.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit/src/org/spearce/jgit/lib/PackWriter.java
org.spearce.jgit/src/org/spearce/jgit/transport/UploadPack.java