Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Toward more efficient ArrayLists

Reply
Thread Tools

Toward more efficient ArrayLists

 
 
Jon Skeet
Guest
Posts: n/a
 
      07-03-2003
Tim Jowers <> wrote:
> Jon Skeet <> wrote:
> > Adam Maass <> wrote:
> > > > The 10 time probably refers to Vector rather than ArrayList. I can't
> > > > remember where I read this or the details. I just remember the number
> > > > 10. The penalty should be less now the synchronized has less penalty.
> > > >

>
> JBench did not compile due to needing some outside classes.


Did you not just download the jar file, JBench.jar? That contains
everything it needs to. I believe it also says on the website where to
get the other classes which are needed.

> I wrote a quick test. The whole issue is really how the arrays are used and
> maybe the best "test" would be one that allows this to be configured
> so we can test based on the expected/measured usage patterns. I heard
> a talk on a GC that used statistical analysis...OT.


Indeed, actual usage would (I believe) show interesting results - like
that the performance difference between arrays and ArrayList probably
has no significant bearing on performance in most circumstances.

--
Jon Skeet - <>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Toward more ruly background apps Roedy Green Java 10 11-30-2011 12:47 AM
Toward more extensive use of final Roedy Green Java 17 03-08-2006 11:40 AM
Comparing two arraylists =?Utf-8?B?RE9UTkVUR1VZ?= ASP .Net 1 08-24-2005 10:17 AM
binding ArrayLists to DataGrids-- how to name the columns? Jim Bancroft ASP .Net 3 05-02-2005 08:54 PM
ArrayList of ArrayLists: How to implement IEnumerable =?Utf-8?B?UG9udGlNYXg=?= ASP .Net 0 07-05-2004 02:12 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57