Defer parsing of the ObjectId while walking a PackIndex Iterator
commit682240f47549f1c7952ae63331449478e8f66099
authorShawn O. Pearce <spearce@spearce.org>
Thu, 25 Dec 2008 02:11:12 +0000 (24 18:11 -0800)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sun, 4 Jan 2009 00:06:08 +0000 (4 01:06 +0100)
tree44eed214dbbeb5d88f996bc0d1212385f2eaab18
parentd7936a9595e881cb8d127f86c6d43f2ae275ece0
Defer parsing of the ObjectId while walking a PackIndex Iterator

This is a slight performance improvement for the PackReverseIndex
construction.  The only code that really cares about the ObjectId
from a PackIndex entry is test cases.  By avoiding construction
we can save some CPU time during the several passes we do to make
the reverse index data structure within PackWriter.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit.test/tst/org/spearce/jgit/lib/PackIndexTest.java
org.spearce.jgit.test/tst/org/spearce/jgit/lib/PackWriterTest.java
org.spearce.jgit/src/org/spearce/jgit/lib/PackIndex.java
org.spearce.jgit/src/org/spearce/jgit/lib/PackIndexV1.java
org.spearce.jgit/src/org/spearce/jgit/lib/PackIndexV2.java