Difference between HashMap, HashMap with beginMutation and MutableHashMap
Hi,
I notice in the docs there are:
- a HashMap which is normally immutable but which can be made mutable with beginMutation
- and a MutableHashMap
Is there any guidance as to when to use each one (I mean HashMap without mutation, HashMap with mutation and MutableHashMap)? I tend to use MutableHashMap when I think performance could be an issue. But is it really one? I suppose copy of a map must be really fast. And when should I use a HashMap with beginMutation?
I notice in the docs there are:
- a HashMap which is normally immutable but which can be made mutable with beginMutation
- and a MutableHashMap
Is there any guidance as to when to use each one (I mean HashMap without mutation, HashMap with mutation and MutableHashMap)? I tend to use MutableHashMap when I think performance could be an issue. But is it really one? I suppose copy of a map must be really fast. And when should I use a HashMap with beginMutation?
