Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Hash table optimisation

807603Nov 9 2007 — edited Nov 9 2007
Hello all

I have a question about optimisation of a hash table using the initial capacity parameter.
I need to store on average between 8-16 million entries (integers) in the hash. I have experimented with setting the initial capacity at 500 000, 1 000 000 and 8 000 000. 1million appears to perform the quickest, but I need to test more to see if this is a real effect.

Has anyone else had any similar experience with very large hash tables ?

Cheers
Colin
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 7 2007
Added on Nov 9 2007
6 comments
176 views