I need to iterate over a map of 1 million values. I am currently storing these values in an Int2ObjectArrayMap from fast utils, however even without doing anything but the iteration its taking 20ms to complete.
for (int i : int2ObjectArrayMap.keySet()) { int nothing = i+1;}
for (int i : int2ObjectArrayMap.keySet()) { int nothing = i+1;}
What would be the fastest way to iterate through these objects? I could switch to using something other than an Int2ObjectArrayMap if it would be faster.
Recent Announcements
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
JC|HCL
Java Community | Help. Code. Learn.
We are a Community full of Java developers. Connect with other devs, get help, help others and do much more!