[SPIGOT-1953] Clone command performs slowly Created: 17/Mar/16  Updated: 18/Mar/16  Resolved: 18/Mar/16

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Cat73 Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: 1.9, spigot

Attachments: PNG File img-1.png     PNG File img-2.png     PNG File img-3.png     PNG File img-4.png    

 Description   

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())



 Comments   
Comment by Cat73 [ 17/Mar/16 ]

https://github.com/PaperMC/Paper/blob/30f02fe6e57dcbd6e001a7982c06a7728bfff58b/Spigot-Server-Patches/0077-Optimize-Navigation-Listener.patch

Comment by Cat73 [ 17/Mar/16 ]

Generate Map will have this problem(img-3, img-4)

Generated at Tue Apr 22 06:07:36 UTC 2025 using Jira 10.3.5#10030005-sha1:190c783f2bd6c69cd5accdb70f97e48812a78d14.