> -----Original Message-----
> From: Finn Bock [mailto:[EMAIL PROTECTED]
>
> I can see performance slow down well before 100.000 unique string are
> interned.
>
<snip />
>
> I've attached another demo program that shows that intern'ing is slower
> than doing memory sharing with a Hashtable. This programs creates 13520
> unique strings and does 9 subsequent lookup of the same strings.
>

say... a little trick I just stumbled upon.

try changing the two for loops to :

for(int i= cnt; --i >= cnt; )

take a look at the result. FREAKY!

how much are optimizations like this taken into consideration elsewhere in
the code?


Cheers,

Andreas
> regards,
> finn
>

Reply via email to