MCHPR / MCHPRS

A multithreaded Minecraft server built for redstone.
MIT License
1.55k stars 68 forks source link

Minor QoL fixes and major compile time improvements #131

Closed Paul1365972 closed 7 months ago

Paul1365972 commented 7 months ago

This PR adds an optimized function for iterating over all blocks inside a region, skipping all empty chunk sections. This improves compile time speeds from ~200ms down to ~20ms on my machine for normal sized 256x256 plots.

Other changes:

I hope someone has a good idea on how to deduplicate the optimized function without introducing overhead.