HashMap alternatives for memory-efficient data storage

前端 未结 10 1428
逝去的感伤
逝去的感伤 2020-12-24 06:50

I\'ve currently got a spreadsheet type program that keeps its data in an ArrayList of HashMaps. You\'ll no doubt be shocked when I tell you that this hasn\'t proven ideal.

10条回答
  •  执念已碎
    2020-12-24 07:28

    Some columns will have a lot of repeated values

    immediately suggests to me the possible use of the FlyWeight pattern, regardless of the solution you choose for your collections.

提交回复
热议问题