Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Add option to only load entities from chunk and use it for genPOI, resulting in roughly 1/3 runtime reduction. #1225
This addresses #1224 (my suggestion for some optimization to genPOI).
As well as adding the kwarg to only load entities, I pulled some of the data-processing out into helper methods when I was profiling, and left them factored out; I think that helps readability of the long method and keeps it from getting too far indented as I put some of the work behind a conditional.
I did not bother to put reading the biomes in the conditional since reading them is trivial in terms of processing time as compared to reading blocks/skylight/blocklight.