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

后端 未结 3 675
别那么骄傲
别那么骄傲 2021-01-05 04:53

Android have their own implementation of HashMap, which doesnt use Autoboxing and it is somehow better for performance (CPU or RAM)?

https://developer.android.com/re

3条回答
  •  攒了一身酷
    2021-01-05 05:48

    Is there any reason for you to attempt such a replacement?

    If it's to improve performance then you have to make measures before and after the replacement and see if the replacements helped.

    Probably, not worth of the effort.

提交回复
热议问题