forEach on HashMap and IdentityHashMap (original) (raw)
Remi Forax forax at univ-mlv.fr
Tue Jun 11 16:59:55 UTC 2013
- Previous message: RFR 8016324: filter/flatMap pipeline sinks should pass size information to downstream sink
- Next message: forEach on HashMap and IdentityHashMap
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi guys, This mail was originality sent to lambda-lib EG but Brian ask me to also send it here to not forget.
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).
cheers, Rémi
- Previous message: RFR 8016324: filter/flatMap pipeline sinks should pass size information to downstream sink
- Next message: forEach on HashMap and IdentityHashMap
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]