Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize layer iteration to prevent performance overhead. (#3022)
* Optimize layer iteration to prevent performance overhead. Adjusted the layer iteration logic in the Region class to use the minimum and maximum Y-values from the chunk. This prevents unnecessary iterations when getMinimumY or getMaximumY returns extreme values, improving performance efficiency. * Optimize layer iteration logic in Region class. Refactored the loop to reduce repeated evaluations by storing pre-calculated min and max values for Y coordinates. This change enhances readability and may improve performance by minimizing unnecessary calculations during the iteration process. * Update variable naming * Shift bitwise operations to variable initialization
- Loading branch information