Use an ArrayList for the reuseLoader collection in PackWriter
commit002bbe82f64b3ad2f08ab214e15ce7b9c103a4c2
authorShawn O. Pearce <spearce@spearce.org>
Thu, 25 Dec 2008 02:11:17 +0000 (24 18:11 -0800)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sun, 4 Jan 2009 00:06:09 +0000 (4 01:06 +0100)
tree042c5b70b6e88b6fb4db6128f3f54c2e449dd395
parenta8bb70fc26d365b3feb3c9410c4afab03fd7ba5f
Use an ArrayList for the reuseLoader collection in PackWriter

Nulling out the elements of the array is quicker than deallocating
LinkedList nodes and allocating new ones for the next use.

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