Skip to content

Logic rewrite#235

Draft
RVSkeLe wants to merge 11 commits into
NighterDevelopment:mainfrom
RVSkeLe:perf/improve-lootgen
Draft

Logic rewrite#235
RVSkeLe wants to merge 11 commits into
NighterDevelopment:mainfrom
RVSkeLe:perf/improve-lootgen

Conversation

@RVSkeLe
Copy link
Copy Markdown
Contributor

@RVSkeLe RVSkeLe commented May 13, 2026

THIS IS A DRAFT. THIS IS NOT PRODUCTION READY.
So, uhm, what started as a small perf fix turned into this thing.
This should bring massive performance improvements, as well as a better memory footprint.
Thanks to ThreadLocalRandom, the generation of random numbers has already improved massively. The whole loot generation logic changed (still changing some things). Before this PR the plugin would generate a List of ItemStack(s) and then add it to a HashMap<Integer, ItemStack>, which caused massive amounts of RAM being used, and very heavy cpu usage.

If this PR proves effective, it will be a significant step towards removing all async operations from the plugin and greatly improving thread safety.

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