View Single Post
  #6 (permalink)  
Old 09-25-2007, 12:01 AM
mobilegeek mobilegeek is offline
D-Web Analyst
 
Join Date: Jun 2007
Posts: 205
mobilegeek is on a distinguished road
Default Re: Which is best Vector or ArrayList?

Since my time tests couldn't find any difference, does anyone have specific results of tests which show how much slower Vector actually is than ArrayList?

It would be good if I knew what the difference was so I knew how much weight to give the time in design considerations. Is the difference just fractions of a percent? . I was testing enough iterations that I think Iwould have found differences if they were several percent.

While I do believe that being synchronized has some overhead, it may be a trivial amount. Some people seem emphatic that Vector is bad and ArrayList is good, but without any specifics.
Reply With Quote