Use an array for our packs rather than a List.
commit9dabf2fc594d583da597dd6fbba7b4ba1d13e241
authorShawn O. Pearce <spearce@spearce.org>
Sun, 3 Dec 2006 04:12:25 +0000 (2 23:12 -0500)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 3 Dec 2006 04:12:25 +0000 (2 23:12 -0500)
tree54360aa8ec995db5bc47ba687b104082ecfeefdc
parentab3f22a16222501d7f834f7acff98b0494952695
Use an array for our packs rather than a List.

Since we need to traverse the set of available packs for every object
access this is really in our critical path.  Using an array here is
slightly faster as we don't have method invocation overheads or any
downcasting to deal with.

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