We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I believe this is the most optimized way to do it. Maybe we can remove the sort parts but it is still efficient. The key point is: the parameters are already sorted. Basically, it is possible to iterate through player list and keep the last compared index to not iterate all ranked array repeatedly.
Climbing the Leaderboard
You are viewing a single comment's thread. Return to all comments →
I believe this is the most optimized way to do it. Maybe we can remove the sort parts but it is still efficient. The key point is: the parameters are already sorted. Basically, it is possible to iterate through player list and keep the last compared index to not iterate all ranked array repeatedly.