forEach on HashMap and IdentityHashMap, Re: Loose ends inventory

Remi Forax forax at univ-mlv.fr
Wed Jun 12 02:29:00 PDT 2013


On 06/12/2013 10:04 AM, Paul Sandoz wrote:
> On Jun 11, 2013, at 6:34 PM, Remi Forax <forax at univ-mlv.fr> wrote:
>
>> It was not listed in Brian list, but we should provide an implementation of forEach for HashMap that avoid to create an Iterator,
>> HashMap is too common to not have it's dedicated implementation
>> (ArrayList by example has its own implementation of forEach).
>>
>> There is also another implementation that should have a specific implementation IdentityHashMap because
>> entrySet() creates map entries on the fly so having a specific implementation that will not allocatin entries will improve performance
>> (a lot for big identity hashmap).
>>
> Also perhaps ConcurrentHashMap.

yes !

>
> I logged a bug to track this.
>
> Paul.

thank you,
Rémi



More information about the lambda-libs-spec-experts mailing list