mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 08:35:13 +00:00
HHH-13496 Map sizing optimisations
This commit is contained in:
parent
3b0d7d67b1
commit
0cccf74478
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user