[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [DotGNU]String intern hashtable
From: |
Rhys Weatherley |
Subject: |
Re: [DotGNU]String intern hashtable |
Date: |
Sun, 22 Jun 2003 11:21:50 +1000 |
User-agent: |
KMail/1.4.3 |
On Sunday 22 June 2003 10:55 am, Thong \(Tum\) Nguyen wrote:
> I just noticed the string intern hasthable size is 512 (not a prime
> number). That could be the reason for the poor intern performance....
The size was actually 2048 (support/intern.c) - 512 is the size for other hash
tables (support/hashtab.c). Don't confuse intern'ing in the compiler with
intern'ing in the engine. They are two completely separate things.
Changing these to prime numbers does help a little, but only on the order of a
second or so for a full pnetlib build. If there is a bottleneck in the
system, then this isn't it.
Cheers,
Rhys.