aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test/tst
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2011-03-10 10:09:58 -0800
committerShawn O. Pearce <spearce@spearce.org>2011-03-10 10:09:58 -0800
commitd1e47df0da69aa644bae8a68f734f64a2e900ca3 (patch)
tree195a5bf877e62b213e2efc3781428c300923d173 /org.eclipse.jgit.test/tst
parent42f0b11153d2917f96be1a0be94896bdf9eb1044 (diff)
downloadjgit-d1e47df0da69aa644bae8a68f734f64a2e900ca3.tar.gz
jgit-d1e47df0da69aa644bae8a68f734f64a2e900ca3.zip
ObjectIdSubclassMap: Micro-optimize wrapping at end of table
During a review of the class, Josh Bloch pointed out we can use "i = (i + 1) & mask" to wrap around at the end of the table, instead of a conditional with a branch. This is generally faster due to one less branch that will be mis-predicted by the CPU. Change-Id: Ic88c00455ebc6adde9708563a6ad4d0377442bba Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'org.eclipse.jgit.test/tst')
0 files changed, 0 insertions, 0 deletions