|
-
Jun 12th, 2005, 02:26 PM
#1
Thread Starter
Dazed Member
Calculating when a Hashtable rehashing operation will occur
After reading somthing out of the sun docs i am a bit confused. According to the documentation on Hashtable no rehash operations will ever occur if the initial capacity is greater than the maximum number of entries the Hashtable will contain divided by its load factor.
This to me makes absolutely no nense. If the maximum capacity of a Hashtable is say 20 and it's load factor is defaulted at 0.75. Then 20 * 0.75 yields 15. So any initial capacity over 15 or an initial capacity under 15 plus an amount that pushes the capacity over 15 would cause a resizing.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|