Tag : Vector

A question that some developers ask is, with many List (Java Doc) implementations, which one should one uses? The correct answer to this question is, it depends. In this article we compared various lists implementations and measured their performance when executing some common actions. Some implementations performed poorly when compared to the others are highlighted in the first two tests. This does not mean that those that did not do well should never be used. On the contrary, all implementations have their place and here we only considered single threading environment. Before using any given list, stop and think how this list is going to be used and run some tests like the ones we saw here before jumping into any hasty conclusions.

Albert Attard
Author: 5 years ago