mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 05:47:45 +01:00
4b68f08fe5
Instead of allocating the 4KB for every chunk section, cache it locally and reuse it for other chunk sections to save on allocations. These allocations add up very quickly when saving chunks frequently. For example, with 30,000 chunks and 16 chunk sections per chunk (which will actually get larger in 1.18) it allocates nearly 2GB, which this patch eliminates entirely. |
||
---|---|---|
.. | ||
api | ||
server |