Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve efficiency and performance of the painting process #114

Merged
merged 2 commits into from
Jul 28, 2024

Conversation

GoodrichDev
Copy link
Contributor

@GoodrichDev GoodrichDev commented Jul 4, 2024

  • Cache the coords in a province.

- Introduced batch operations in claimChunksCoveredByBrush to minimize write operations.
- Utilized Java Stream API in deleteExistingProvincesWhichAreMostlyInSpecifiedArea for efficient counting.
- Reduced logging within performance-critical loops to minimize overhead.
- Simplified and optimized validation methods to avoid redundant checks.
@LlmDl
Copy link
Member

LlmDl commented Jul 6, 2024

It looks like you reverted all the changes in the class that had the good changes.

@LlmDl LlmDl added this to the 2.2.0 milestone Jul 28, 2024
@LlmDl LlmDl merged commit 2d2e7d0 into TownyAdvanced:master Jul 28, 2024
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