I found a toArray in NavigationListener.a caused the most execution time(img-1).
And I think it is entirely omitted(img-2).
Can be changed to the following lines.
for (NavigationAbstract localNavigationAbstract : this.b.keySet())
I found a toArray in NavigationListener.a caused the most execution time(img-1).
And I think it is entirely omitted(img-2).
Can be changed to the following lines.
for (NavigationAbstract localNavigationAbstract : this.b.keySet())
https://github.com/PaperMC/Paper/blob/30f02fe6e57dcbd6e001a7982c06a7728bfff58b/Spigot-Server-Patches/0077-Optimize-Navigation-Listener.patch