Skip to content

Commit 50c9095

Browse files
committed
murmur just string hashcode, not string, to take advantage of string's caching
1 parent 1798b44 commit 50c9095

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jvm/clojure/lang/Util.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public static int hasheq(Object o){
169169
if(o instanceof Number)
170170
return Numbers.hasheq((Number)o);
171171
if(o instanceof String)
172-
return Murmur3.hashUnencodedChars((CharSequence) o);
172+
return Murmur3.hashInt(o.hashCode());
173173
return o.hashCode();
174174
}
175175

0 commit comments

Comments
 (0)