If these string compares are a hotspot for you, try using String.intern() and then compare strings with == instead of .equals(). String.intern() uses a hash table to return a unique String instance for every unique character sequence. It's a good way to save memory too if you have to store a lot of strings. One program I profiled went from using 51M to using 14M with judicious use of String.intern(). YMMV so profile early and often. --Ed
_______________________________________________ Juglist mailing list [EMAIL PROTECTED] http://trijug.org/mailman/listinfo/juglist_trijug.org
