Re: Any Checkstyle users?
- From: Roedy Green <my_email_is_posted_on_my_website@xxxxxxxxxxxxxx>
- Date: Tue, 31 Jan 2006 14:17:19 GMT
On Tue, 31 Jan 2006 11:42:01 -0000, "Chris Uppal"
<chris.uppal@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote, quoted or indirectly
quoted someone who said :
>Except that that isn't true. The name should be something like
> private static final int INITIAL_ESTIMATE_OF_PROBABLE_MAX_GUESTS = 50;
>which is unwieldy in the extreme, but calling it MAX_GUESTS is actively wrong
>and so must be avoided.
How let us say the capacity factor is .75 and you set the size at
100. How big is the array inside 100 or 133? Not knowing that could
give you poor performance with the beasts.
IIRC, I have it documented but I don't recall the answer. See
http://mindprod.com/jgloss/hashmap.html
http://mindprod.com/jgloss/hashtable.html
These things need a fair bit of slop to work. Putting 100 guests in
100 slots is like asking a ballerina to perform in a telephone booth.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
.
- Follow-Ups:
- Re: Any Checkstyle users?
- From: Chris Uppal
- Re: Any Checkstyle users?
- References:
- Any Checkstyle users?
- From: slippymississippi
- Re: Any Checkstyle users?
- From: mikm
- Re: Any Checkstyle users?
- From: mikm
- Re: Any Checkstyle users?
- From: Chris Uppal
- Any Checkstyle users?
- Prev by Date: Re: Java 1.6 Heisenbug involving startsWith
- Next by Date: Re: What IDE for Java do you use?
- Previous by thread: Re: Any Checkstyle users?
- Next by thread: Re: Any Checkstyle users?
- Index(es):
Relevant Pages
|