Memory-efficient sparse array in Java

前端 未结 5 592
野趣味
野趣味 2020-11-29 10:17

(There are some questions about time-efficient sparse arrays but I am looking for memory efficiency.)

I need the equivalent of a List or

5条回答
  •  野性不改
    2020-11-29 10:53

    I would look at Android's SparseArray implementation for inspiration. You can view the source by downloading AOSP's source code here http://source.android.com/source/downloading.html

提交回复
热议问题