Skip to content

Improve performance of PoiCompetitorScan by unrolling stream#11870

Closed
ChromMob wants to merge 1 commit into
PaperMC:mainfrom
ChromMob:main
Closed

Improve performance of PoiCompetitorScan by unrolling stream#11870
ChromMob wants to merge 1 commit into
PaperMC:mainfrom
ChromMob:main

Conversation

@ChromMob
Copy link
Copy Markdown
Contributor

I was debugging villagers and I noticed that the reduce on the stream has massive overhead so I decided to unroll it.
Here are sparks for before and after:
Before
After
Those numbers are with 229 active villagers on R7 5700X with 64GB of RAM.
image
Here is the test world:
world.tar.gz

@ChromMob ChromMob requested a review from a team as a code owner December 31, 2024 10:52
@github-actions
Copy link
Copy Markdown

Please do not open pull requests from the main branch, create a new branch instead.

@github-actions github-actions Bot closed this Dec 31, 2024
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.

1 participant