Discard the index file handle after reading it
commitd1e54a4e0b644db4f183ffbbaa71ba246cf90496
authorShawn O. Pearce <spearce@spearce.org>
Tue, 8 May 2007 03:28:37 +0000 (7 23:28 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Tue, 8 May 2007 03:28:37 +0000 (7 23:28 -0400)
treea6eec6d3f1ff668879929ab855abe0b00aee5228
parent788782a5abaa85b733711193368020ea11fc0eb2
Discard the index file handle after reading it

Now that we store the entire index file in a byte[] and no
longer access it on demand through the WindowedFile handle
there is no reason to maintain the WindowedFile handle or
any cached windows that may be associated with it.  Better
that we discard that file as quickly as possible than to
hang onto it and all of the associated resources, as we
could wind up with the index data in virtual memory twice.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.jgit/src/org/spearce/jgit/lib/PackFile.java