Skip to content

Memory optimization: Lazy initialization of IBlockDataList - > 6.5% of RAM wasted.#11499

Closed
xymb-endcrystalme wants to merge 1 commit into
PaperMC:masterfrom
xymb-endcrystalme:iblockdatalist
Closed

Memory optimization: Lazy initialization of IBlockDataList - > 6.5% of RAM wasted.#11499
xymb-endcrystalme wants to merge 1 commit into
PaperMC:masterfrom
xymb-endcrystalme:iblockdatalist

Conversation

@xymb-endcrystalme
Copy link
Copy Markdown

In my tests (1 player, high render distance) it lowered heap dump size from 928MB to 872M.

Considering that like 400MB of that was Folia itself, empty IBlockDataList structures are probably nearly 10% of RAM usage of many servers.

…g blocks.

In my tests (1 player, high render distance) it lowered heap dump size from 928MB to 872M.
@xymb-endcrystalme xymb-endcrystalme requested a review from a team as a code owner October 18, 2024 19:00
@lynxplay
Copy link
Copy Markdown
Contributor

As cat stated on your initial PR, this should probably be PRed to https://github.com/Tuinity/Moonrise and then ported to paper once accepted there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

2 participants