Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lazily construct GTRecipeWrappers in JEI recipe category #2714

Open
wants to merge 1 commit into
base: 1.20.1
Choose a base branch
from

Conversation

embeddedt
Copy link
Contributor

This PR builds on Low-Drag-MC/LDLib-MultiLoader#59 (which must be merged first) and changes the JEI recipe category to take advantage of the functionality there to only construct the GTRecipeWrapper objects (i.e. recipe widgets) on demand. This saves at least 250MB of RAM in larger packs.

@embeddedt embeddedt requested a review from a team as a code owner January 11, 2025 00:23
@krossgg krossgg added Do Not Merge DO NOT MERGE THIS PR YET! type: refactor Suggestion to refactor a section of code labels Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Do Not Merge DO NOT MERGE THIS PR YET! type: refactor Suggestion to refactor a section of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants