Skip to content

Do not retain JEMI layout builder for every recipe#951

Merged
emilyploszaj merged 1 commit intoemilyploszaj:1.21from
embeddedt:fix-builder-retention
May 17, 2025
Merged

Do not retain JEMI layout builder for every recipe#951
emilyploszaj merged 1 commit intoemilyploszaj:1.21from
embeddedt:fix-builder-retention

Conversation

@embeddedt
Copy link
Contributor

The builder field of JemiRecipe is only ever referenced during the constructor, and appears to just be used to compute the inputs/outputs/catalysts of the recipe. To actually render the recipe a new builder is created in addWidgets. Therefore it seems there's no need to retain this temporary initial builder in a field forever. Removing it substantially reduces the retained size of JemiRecipes in a modpack.

@emilyploszaj
Copy link
Owner

Well this seems like a really funny oversight, thanks for finding it.

@emilyploszaj emilyploszaj merged commit 8fdf593 into emilyploszaj:1.21 May 17, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants