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
Post a Comment