Skip to content

>50% perf improvement and >50% reduction in ram usage - #478

Draft
MCRcortex wants to merge 1 commit into
Captain-Chaos:masterfrom
MCRcortex:patch
Draft

>50% perf improvement and >50% reduction in ram usage #478
MCRcortex wants to merge 1 commit into
Captain-Chaos:masterfrom
MCRcortex:patch

Conversation

@MCRcortex

@MCRcortex MCRcortex commented Jul 8, 2025

Copy link
Copy Markdown

performance is compared to 2.24.4, ram usage is probably more than 50% and near 60 reduction, this is a draft as its ment to show as an example of one way, it requires some of the other prs have done for the progressreciever to not be a bottleneck on my laptop (16 threads(6p 4e)). there are many other things such as not using strings for type testing or parsing properties (e.g. Integer.parse) whenever blockstate properties are accessed which would provide significant increase in performance. current implementation is also not optimal (nor am sure if 100% correct but thinks is) as it does a for loop to find block state index in pallet even when it is fairly large, (>16/32) which should be replaces with a Reference2Short hashmap (from fastutils) which should improve block setting speed in large palleted chunk sections

@Captain-Chaos

Copy link
Copy Markdown
Owner

Sounds promising! As you might have noticed I have already integrated some of your suggested changes, so you might want to rebase.

…ements to ram usage (>50% reduction in ram usage (probably near 60%))
@MCRcortex

Copy link
Copy Markdown
Author

have also updated util pr to include the missing UnsafeRandom.fastNextInt

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