-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Use a cache when events are triggered to be able to lookup the events faster within a hashmap. See https://github.com/EngineHub/WorldGuard/blob/af93530dbe9f420be20aa490d33c3fafb997aa0d/worldguard-core/src/main/java/com/sk89q/worldguard/protection/regions/QueryCache.java
Create a custom "CacheKey" to be used as the key which stores the polygon and can then check if the location in question is contained. Can use a priorty queue based on how many times the location has been 'hit' with events in a period of time.
Metadata
Metadata
Assignees
Labels
No labels