madeqx wrote:In that case: nevermind. And possible performance difference wouldn't be noticable with those numbers. Readability and ease of maintenance is much more important here.
I'm expecting the map to contain roughly between 10 and 50 elements.
madeqx wrote:a) No. Iteration is O(n) in both cases.
Will this piece of code be significantly slower than iteration over an ArrayList?