jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tobias Bocanegra <tri...@day.com>
Subject Re: Generics generator class
Date Wed, 06 May 2009 20:05:11 GMT
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 <thomas.mueller@day.com> 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
>

Mime
View raw message