Skip to content

Rewrote getLogsToBreak to improve performance#3

Open
sync1211 wants to merge 1 commit intoSerilum:1.21.5from
sync1211:1.21.5
Open

Rewrote getLogsToBreak to improve performance#3
sync1211 wants to merge 1 commit intoSerilum:1.21.5from
sync1211:1.21.5

Conversation

@sync1211
Copy link
Copy Markdown

@sync1211 sync1211 commented Apr 15, 2025

Rewrote the getLogsToBreak function to improve performance when harvesting large trees such as the ones generated by the Twilight Forest mod.

This is done by changing the type of logsToBreak to a HashSet to speed up checking for existing entries and removing aroundLogs in favor of looping over the iterator directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants