java - When to use Android's ArrayMap instead of a HashMap? -


android have own implementation of hashmap, doesnt use autoboxing , somehow better performance (cpu or ram)?

https://developer.android.com/reference/android/support/v4/util/arraymap.html

from read here, should replace hashmap objects arraymap objects if have hashmaps size below hundreds of records , written to. , there no point in replacing hashmaps arraymaps if going contain hundreds of objects , written once , read frequently. correct?

is there reason attempt such replacement?

if it's improve performance have make measures before , after replacement , see if replacements helped.

probably, not worth of effort.


Comments

Popular posts from this blog

html - Difficulties with background-image property -

visual studio code - What does the isShellCommand property actually do and how should you use it? -

ios - Segue not passing data between ViewControllers -