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:
Same improvement for //update
When executing //update without a selection the entire plot is updated instead
Added -u flag for the //paste command to immediately update the pasted schematic
/rtps u now works as an alias for /rtps unlimited
I hope someone has a good idea on how to deduplicate the optimized function without introducing overhead.
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:
//update
//update
without a selection the entire plot is updated instead-u
flag for the//paste
command to immediately update the pasted schematic/rtps u
now works as an alias for/rtps unlimited
I hope someone has a good idea on how to deduplicate the optimized function without introducing overhead.