Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
-
Java 6, Tomcat 6
Description
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.