diff options
author | David Turner <dturner@twosigma.com> | 2018-04-27 15:04:18 -0400 |
---|---|---|
committer | David Turner <dturner@twosigma.com> | 2018-04-27 15:21:30 -0400 |
commit | d4f3ae0c43c5602b0ca17f4274ee4ffb928f8f7f (patch) | |
tree | 33de7cccf726f114be02858cc2f3b626e0773e30 /org.eclipse.jgit.pgm/src | |
parent | 4dcf2f93db3f31262220140484237cfbb4189f4d (diff) | |
download | jgit-d4f3ae0c43c5602b0ca17f4274ee4ffb928f8f7f.tar.gz jgit-d4f3ae0c43c5602b0ca17f4274ee4ffb928f8f7f.zip |
Fix comparison order in AnyObjectId
The previous version suggested testing w2 first because w1 was used
for hashing, but in fact, hashCode returns w2. The order (w3, w4, w5,
w1, w2) might be better on 64-bit processors too, since it allows
comparing 64 bits at a time, although perhaps on a modern SIMD
processor, the entire 160 bytes would be compared at once anyway.
Change-Id: Ieb69606d3c1456aeff36bffe99a71587ea76e977
Signed-off-by: David Turner <dturner@twosigma.com>
Diffstat (limited to 'org.eclipse.jgit.pgm/src')
0 files changed, 0 insertions, 0 deletions