We very rarely actually utilize the varargs aspect of RecipeBuilder method, causing a lot of wasted allocations for single item arrays. This PR adds non-varargs methods for a single input, which is our most common case. This should reduce array allocations significantly.
Outcome
Reduces memory allocations in recipe registration and recipe logic code.
What
We very rarely actually utilize the varargs aspect of
RecipeBuilder
method, causing a lot of wasted allocations for single item arrays. This PR adds non-varargs methods for a single input, which is our most common case. This should reduce array allocations significantly.Outcome
Reduces memory allocations in recipe registration and recipe logic code.