I need to iterate over a Hashmap to retrieve values stored in it.
As a bonus, I also have a list of the keys. So I have the option to iterate over it using the iterator or by random Access in a for loop. Which of the two options would provide a better performant way to do so?