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

new: Optimize block entity ticking & unloading #102

Merged
merged 4 commits into from
Aug 19, 2020

Conversation

maityyy
Copy link
Contributor

@maityyy maityyy commented Aug 17, 2020

This PR introduces a new optimization patch that uses hash tables as a specifically optimized collection option for the list of unloaded block entities in the world, which greatly improves performance when unloading large numbers of them (also see MC-117075).

Based on my tests, it took about ~60% less time to unload a full chunk of chests than vanilla. However, my computer is too weak and the numbers may differ significantly from mine. But what I can say for sure is that it will definitely improve performance.

P. S. I am from another country and English is not my first language. If I made stupid mistakes, please correct me. I'll be very grateful.

Copy link
Member

@2No2Name 2No2Name left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM besides the wrapper that does not implement all methods properly

…ther mods running and avoid additional bugs
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