struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Borislav Iordanov <boris...@kobrix.com>
Subject Re: Are Vectors in a FormAction set to null after a user has submitted a form?
Date Fri, 01 Feb 2002 19:35:11 GMT
Well, for one thing, Vectors are synchronized and ArrayLists aren't. So the
latter are faster (I've heard something like 20% faster) and preferable when
you don't need synchronization. Same goes for Hashtable vs. HashMap and in
general old vs new collection classes.

Boris

On Fri, 01 Feb 2002, you wrote:
> Hi Chuck,
> 
> I use Vector all the time. I'm curious why who feel that List/ArrayList is
> preferable.
> 
> Dave D
> 
> 
> ----- Original Message -----
> From: "Chuck Cavaness" <struts-user@japache.org>
> To: <struts-user@jakarta.apache.org>
> Sent: Friday, February 01, 2002 2:37 AM
> Subject: Re: Are Vectors in a FormAction set to null after a user has
> submitted a form?
> 
> 
> >
> > p.s. Is anyone really using the Vector class anymore? Why aren't you using
> List/ArrayList? Just curious.
> > --
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message