]> source.dussan.org Git - jgit.git/commit
Use int[] rather than IntList for RawText hashes 98/1498/1
authorShawn O. Pearce <spearce@spearce.org>
Wed, 1 Sep 2010 23:54:20 +0000 (16:54 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Wed, 1 Sep 2010 23:54:20 +0000 (16:54 -0700)
commit3fa7d3a2d22c3f6e1b800955e7e2bc5ad3df80c4
treef7ddfdd01e672a66219b6671caffc04f84d9bad6
parent38327a54a86697458a1b326278e04833c105c00e
Use int[] rather than IntList for RawText hashes

We know exactly how many lines we need by the time we compute our
per-line hashes, as we have already built the lines IntList to give
us the starting position of each line in the buffer.  Using that
we can properly size the array, and don't need the dynamic growing
feature of IntList.  So drop the indirection and just use a fixed
size array.

Change-Id: I5c8c592514692a8abff51e5928aedcf71e100365
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/diff/RawText.java
org.eclipse.jgit/src/org/eclipse/jgit/diff/RawTextIgnoreAllWhitespace.java
org.eclipse.jgit/src/org/eclipse/jgit/diff/RawTextIgnoreLeadingWhitespace.java
org.eclipse.jgit/src/org/eclipse/jgit/diff/RawTextIgnoreTrailingWhitespace.java
org.eclipse.jgit/src/org/eclipse/jgit/diff/RawTextIgnoreWhitespaceChange.java