4 ms·
I reduced my use of sets. I often used sets in Java as return-types or parameters to specify collections of unique items. Profiling code over the years I noti
by fzeindl 3y ago
I reduced my use of sets.
I often used sets in Java as return-types or parameters to specify collections of unique items.
Profiling code over the years I noticed that, a lot of times the reason for a performance bottleneck was some hashcode calculation for a Set or Map.
So now I often use plain ol' ArrayLists.