You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Jamie Orchard-Hays <ja...@dang.com> on 2004/04/28 21:23:29 UTC

Select

I'm curious about this Set initialization in buildSelections() in
Select.java:

int size = (parameters.length > 30) ? 101 : 7;
Set result = new HashSet(size);

Thanks,
Jamie


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org


Re: Select

Posted by Jamie Orchard-Hays <ja...@dang.com>.
I got the prime number part, but 30/7 was confusing!

----- Original Message ----- 
From: "Howard M. Lewis Ship" <hl...@comcast.net>
To: "'Tapestry development'" <ta...@jakarta.apache.org>
Sent: Wednesday, April 28, 2004 4:58 PM
Subject: RE: Select


> Misguided premature optimization 4 years ago. But nice prime numbers, good
for hash tables of all
> kinds.
>
> --
> Howard M. Lewis Ship
> Independent J2EE / Open-Source Java Consultant
> Creator, Tapestry: Java Web Components
> Creator, HiveMind
> http://howardlewisship.com
>
>
> > -----Original Message-----
> > From: Jamie Orchard-Hays [mailto:jamie@dang.com]
> > Sent: Wednesday, April 28, 2004 3:23 PM
> > To: Tapestry development
> > Subject: Select
> >
> >
> > I'm curious about this Set initialization in buildSelections() in
> > Select.java:
> >
> > int size = (parameters.length > 30) ? 101 : 7;
> > Set result = new HashSet(size);
> >
> > Thanks,
> > Jamie
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org


RE: Select

Posted by "Howard M. Lewis Ship" <hl...@comcast.net>.
Misguided premature optimization 4 years ago. But nice prime numbers, good for hash tables of all
kinds.

--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Tapestry: Java Web Components 
Creator, HiveMind
http://howardlewisship.com


> -----Original Message-----
> From: Jamie Orchard-Hays [mailto:jamie@dang.com] 
> Sent: Wednesday, April 28, 2004 3:23 PM
> To: Tapestry development
> Subject: Select
> 
> 
> I'm curious about this Set initialization in buildSelections() in
> Select.java:
> 
> int size = (parameters.length > 30) ? 101 : 7;
> Set result = new HashSet(size);
> 
> Thanks,
> Jamie
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org