[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: String/Hashtable bootstrapping problem
From: |
Artur Biesiadowski |
Subject: |
Re: String/Hashtable bootstrapping problem |
Date: |
Wed, 04 Jul 2001 18:54:46 +0200 |
Patrick Doyle wrote:
> Does anyone have any recommendations as to how I should handle this?
> Perhaps I should not call String.intern if String.internTable is null,
> relying on the libraries not to try to use two copies of the same constant
> string?
Maybe consider implementing String.intern as native method ? It might be
a bit slower from java, but most of interning is done from inside
classloaders - so you will save time on not calling java intern from
inside native part. You can always implement optimization for it inside
jit if you will find it a bottleneck later.
Artur