git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6387 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 16 years ago
parent d2615ea5a8
commit 2f6d88403e

@ -86,8 +86,7 @@ public class Word {
String wordlc = word.toLowerCase(Locale.ENGLISH);
byte[] h = hashCache.get(wordlc);
if (h != null) return h;
h = hashCache.get(wordlc); // we must test that again because another thread may have written the value in between
if (h != null) return h;
// calculate the hash
h = Base64Order.enhancedCoder.encodeSubstring(Digest.encodeMD5Raw(wordlc), yacySeedDB.commonHashLength);
assert h[2] != '@';
hashCache.put(wordlc, h); // prevent expensive MD5 computation and encoding

Loading…
Cancel
Save