xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas L. Delmelle" <a_l.delme...@pandora.be>
Subject RE: String.intern() test and measurement
Date Wed, 03 Dec 2003 22:48:32 GMT
> -----Original Message-----
> From: Finn Bock [mailto:bckfnn@worldonline.dk]
>
> 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
>


Mime
View raw message