Memory-efficient sparse array in Java

前端 未结 5 594
野趣味
野趣味 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:59

    I would try with trove collections, there is TIntObjectMap which can work for your intents.

提交回复
热议问题