A space efficient data structure to store and look-up through a large set of (uniformly distributed) Integers

后端 未结 7 2156
悲哀的现实
悲哀的现实 2021-01-06 22:28

I\'m required to hold, in memory, and look-up through one million uniformly distributed integers. My workload is extremely look-up intensive.
My current implementation u

7条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-06 23:02

    You might want to take a look at a BitSet The one used in Lucene is even faster as the standard Java implementation since it neglects some standard boundary checks.

提交回复
热议问题