HHH-13496 Map sizing optimisations

This commit is contained in:
Sanne Grinovero 2019-07-08 11:38:36 +01:00
parent 3b0d7d67b1
commit 0cccf74478
1 changed files with 1 additions and 1 deletions

View File

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