3 ms·
In addition to this, Java should eliminate unordered collections entirely and alias them to their ordered equivalents; for example, HashMap -> LinkedHashMap, Ha
by tadfisher 4y ago
In addition to this, Java should eliminate unordered collections entirely and alias them to their ordered equivalents; for example, HashMap -> LinkedHashMap, HashSet -> LinkedHashSet. See [0].
[0]: https://publicobject.com/2016/02/08/linkedhashmap-is-always-better-than-hashmap/ https://publicobject.com/2016/02/08/linkedhashmap-is-always-...
- vips7L 4y agoThat link claims the performance impact is negligible, but doesn't provide any benchmarks.