mccoyst / tact

Tact automatically adds certain runtime checks to Java bytecode in class files.
0 stars 0 forks source link

ThreadMap is unnecessarily slow #19

Closed mccoyst closed 12 years ago

mccoyst commented 12 years ago

Scott found a solution to avoid the linear lookup: http://docs.oracle.com/javase/6/docs/api/java/lang/System.html#identityHashCode(java.lang.Object)

There is a java.util.IdentityHashMap, but I need to keep the weak keys behavior of WeakHashMap.