Introduction
Java developers usually deal with collections such as ArrayList
and HashSet.
Java 8 came with lambda and the streaming API that helps us to easily work with collections. In most cases, we work with a few thousands of items and performance isn’t a concern. But, in some extreme situations, when we have to travel over a few millions of items several times, performance will become a pain.
I use JMH for checking the running time of each code snippet.
Laisser un commentaire
Participez-vous à la discussion?N'hésitez pas à contribuer!