Skip to content

Commit e264fa2

Browse files
committed
preallocate as little as possible for sensitive component hashmap
1 parent 20b715a commit e264fa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/mekanism/common/recipe/lookup/cache/type/ComponentSensitiveInputCache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public abstract class ComponentSensitiveInputCache<KEY, INPUT, INGREDIENT extend
2525
private final Map<INPUT, List<RECIPE>> componentInputCache;
2626

2727
protected ComponentSensitiveInputCache(Hash.Strategy<? super INPUT> componentHashStrategy) {
28-
this.componentInputCache = new Object2ObjectOpenCustomHashMap<>(componentHashStrategy);
28+
this.componentInputCache = new Object2ObjectOpenCustomHashMap<>(0, Hash.VERY_FAST_LOAD_FACTOR, componentHashStrategy);
2929
}
3030

3131
@Override

0 commit comments

Comments
 (0)