Christoph Goller wrote:
However outside the package only the public constructor of Term can be called, which does the field.intern(). I donīt know how expensive the call to intern() really is. Maybe my worries are irrelevant.

String.intern() is just a hash table lookup in most cases, and Java hash tables are pretty fast. The constructor and object allocation will easily dominate this.


Doug

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to