![]() |
Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
I wrote a short program that tests various Containers including a LinkedList. One of the tests I ran on a LinkedList was Random inserts and removals from the list. In Visual Age it performed as expected with times much better than other containers like ArrayList and Vector. On the command line I recompiled it and ran it with JDK1.3 and also tried it with JDK1.2 and the LinkedList was 10 times slower doing the same random inserts and deletes than an ArrayList. I ran the program a couple of times with the same results. Is there anyway to explain this?
Replies: |
Sponsored Links
|