Skip to content

Commit

Permalink
Reduce initial size of sets for ingredientUidToCategoryMap (#3735)
Browse files Browse the repository at this point in the history
  • Loading branch information
embeddedt authored Sep 3, 2024
1 parent 95d14d0 commit 625cfe0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
*/
public class RecipeMap {
private final RecipeIngredientTable recipeTable = new RecipeIngredientTable();
private final Multimap<Object, RecipeType<?>> ingredientUidToCategoryMap = Multimaps.newSetMultimap(new Object2ObjectOpenHashMap<>(), ObjectOpenHashSet::new);
private final Multimap<Object, RecipeType<?>> ingredientUidToCategoryMap = Multimaps.newSetMultimap(new Object2ObjectOpenHashMap<>(), () -> new ObjectOpenHashSet<>(2));
private final Multimap<Object, RecipeType<?>> categoryCatalystUidToRecipeCategoryMap = Multimaps.newSetMultimap(new Object2ObjectOpenHashMap<>(), ObjectOpenHashSet::new);
private final Comparator<RecipeType<?>> recipeTypeComparator;
private final IIngredientManager ingredientManager;
Expand Down

0 comments on commit 625cfe0

Please sign in to comment.