Skip to content

Optimize WorldGuard region checks performance - #140

Open
1wairesd wants to merge 1 commit into
Rosewood-Development:masterfrom
1wairesd:master
Open

Optimize WorldGuard region checks performance#140
1wairesd wants to merge 1 commit into
Rosewood-Development:masterfrom
1wairesd:master

Conversation

@1wairesd

Copy link
Copy Markdown
  • Combine isInAllowedRegion/isInLimitedRegion into single getRegions() call
  • Replace stream/sort/collect with ArrayList + sort to reduce GC pressure
  • Skip WorldGuard re-checks for players who haven't moved (distance² < 1.0)
  • Add lastWorldGuardLocation tracking to PPlayer

- Combine isInAllowedRegion/isInLimitedRegion into single getRegions() call
- Replace stream/sort/collect with ArrayList + sort to reduce GC pressure
- Skip WorldGuard re-checks for players who haven't moved (distance² < 1.0)
- Add lastWorldGuardLocation tracking to PPlayer
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.

1 participant