I have a map of key-value pairs of huge size, approximately 10^7, and I have to loop through it 15 times a second in order to update its contents Is there any class or structure that offers good complexity and reduces the time needed to loop through?
目前,我使用的是TreeMap,但复杂程度仅为log n,仅供装、投放、取走。 通过要素进行选择是极其复杂的
你们是否知道任何结构,或是否有什么想法可以减少复杂性below n?