talking about performance...what is the difference between new HashMap<...>() and your suggested Maps.newHashMap() ?
regards, toby On Wed, May 6, 2009 at 1:41 PM, Thomas Müller <[email protected]> wrote: > Hi, > >> is this worth it ? > > No. There are better ways to improve performance :-) > >> this performance issue is already solved in a modern JVM > > Not completely. This particular case is much better optimized in JDK > 1.6. But usually, the JVM has to do a bit more when calling interface > methods. There is still a difference, for example if you make 'list' a > private field: > > Java 1.6 List: 2278; ArrayList: 1710 > > Regards, > Thomas >
