HHH-13496 Map sizing optimisations

This commit is contained in:
Sanne Grinovero 2019-07-08 11:38:36 +01:00
parent 3b0d7d67b1
commit 0cccf74478

View File

@ -111,7 +111,7 @@ public static <K, V, E> Map<K, V> makeMap(
return Collections.emptyMap();
}
final Map<K, V> map = new HashMap<>();
final Map<K, V> map = new HashMap<>( determineProperSizing( collection.size() ));
for ( E element : collection ) {
map.put(