Re: Any Checkstyle users?



On 31 Jan 2006 16:04:07 GMT, "Chris Uppal"
<chris.uppal@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote, quoted or indirectly
quoted someone who said :

>In point of fact, the implementation rounds the capacity up to a power
>of two.

See http://mindprod.com/jgloss/hashmap.html
http://mindprod.com/jgloss/hashtable.html

Look for the hammerhead "gotcha" shark.

That rounding gives HashMaps a bit of extra slop, perhaps giving
HashMap an undeserved reputation for being much faster that Hashtable.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
.



Relevant Pages