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

Drain category improvements #7277

Open
wants to merge 1 commit into
base: mc1.20.1/dev
Choose a base branch
from

Conversation

embeddedt
Copy link
Contributor

This PR reduces memory usage of the drain category by avoiding storage of duplicate item stacks. If the result stack is exactly the same as the original stack, we use the original stack in its place. Otherwise, we deduplicate the new stack.

This saves about 10MB of memory in a small test pack; gains should scale with the number of fluid-holding ingredients in JEI.

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.

1 participant