-
Type:
Improvement
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.4
-
Component/s: None
-
Labels:None
-
Environment:
Java 6, Tomcat 6
Is there a specific reason to use LinkedList for the internal implementation of List<?> .
ArrayList provides a better locality of reference than a LinkedList . Addition at the end of the list ( the default behavior of .add() ) is expensive for LinkedList again.