6 Replies Latest reply on Apr 14, 2010 5:36 PM by jwenting

    Is iteration over a HashMap significantly slower than an ArrayList?

    807580
      Will this piece of code be significantly slower than iteration over an ArrayList?

      for(Object o : myMap.values()){
      ...
      }

      I'm expecting the map to contain roughly between 10 and 50 elements.

      thanks,