Speeding up method searches

Tom Tromey tromey@cygnus.com
Tue Apr 11 23:03:00 GMT 2000


Bryce> Right. Actually, it seems to me that the collector already
Bryce> doesn't consider the pointers in the intern table for marking,
Bryce> since it is allocated with _Jv_AllocBytes which is for
Bryce> "pointer-free" memory. However, there is nothing to remove a
Bryce> collected string from the hashtable, so we currently get
Bryce> "random" crashes when calling intern()[*].

Thanks.
What if we replace the hash table in natString.cc with a
java.util.Hashtable?

Does interning have to be very fast?  Would the added performance hit
of this approach be acceptable?

Tom


More information about the Java mailing list