LongAdder vs Integer in Hash map for frequency map

前端 未结 0 1645
被撕碎了的回忆
被撕碎了的回忆 2021-01-28 04:57

I am constructing a frequency map in a single-threaded environment using a HashMap. The keys are the Strings whose frequencies needs to be tracked.

If I use HashMap

相关标签:
回答
  • 消灭零回复
提交回复
热议问题