mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-02-02 13:31:43 +01:00
fe024923cf
-Build the list of all potential Players and THEN sort by distance. A good chunk of the method's time was spend sorting things it didn't need to. -Second, reorder the player checks for best performance, where getNPC() is the cheapest check and isPluginVanished is the most expensive check. In somewhat minimal testing, these changes almost dropped findNewTarget off of my profiling entirely |
||
---|---|---|
.. | ||
lib | ||
src/main | ||
pom.xml |