]> source.dussan.org Git - jgit.git/commit
Remove unnecessary hash cache from PatienceDiffIndex 38/1638/2
authorShawn O. Pearce <spearce@spearce.org>
Tue, 21 Sep 2010 20:53:56 +0000 (13:53 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Wed, 22 Sep 2010 01:00:31 +0000 (18:00 -0700)
commite84d826eb6a0649b74d7d374cd6899f4782e51ee
treedfe450bffde9feda2278c27d3fa4270f886bdb23
parenta67afbfee10ca2963f5f0f52f701376e382572e2
Remove unnecessary hash cache from PatienceDiffIndex

PatienceDiff always uses a HashedSequence, which promises to provide
constant time access for hash codes during the equals method and
aborts fast if the hash codes don't match.  Therefore we don't need
to cache the hash codes inside of the index, saving us memory.

Change-Id: I80bf1e95094b7670e6c0acc26546364a1012d60e
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/diff/PatienceDiffIndex.java