ReceivePack: Discard IndexPack as soon as possible
commit8279361de8ca9a216c6dbfcc02591c011308223b
authorShawn O. Pearce <spearce@spearce.org>
Fri, 16 Apr 2010 15:16:23 +0000 (16 08:16 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Fri, 16 Apr 2010 23:32:33 +0000 (16 16:32 -0700)
tree4f292c3baa5140aaab9e43a5184445a319afa5d3
parent7a91b180c193fa9fc168e4ccdf2215a41db73353
ReceivePack: Discard IndexPack as soon as possible

The IndexPack object carries a good bit of state within itself about
the objects received over the wire.  The earlier we can discard it,
the sooner the GC is able to reclaim this chunk of memory for other
uses.  So drop it as soon as we are certain the pack is valid and we
have no connectivity concerns.

Change-Id: I1e8bc87c2e9183733043622237a064e55957891f
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java