Proxies won't be sorted before having all of them pinged at least one time since last restart.
It's timely and may never happen, when the list is too long.
There's a better approach: In proxy list, each slice in which all adjacent elements have been pinged can be sorted while leaving other elements of the list untouched.
By this solution, the list can be partially sorted while still some parts have not been pinged.
For example in the following list:
[1, 2, 3, 4, 5, 6]
[1 (ping: 100), 2 (ping: 300), 3 (ping: 200)] has been pinged but [4 (?), 5 (?), 6 (?)] is still waiting to be pinged.
Instead of waiting for [4, 5, 6] to be pinged and then sorting the whole list at once, you can partially sort [1, 2, 3] as [1, 3, 2] so the whole list will look like:
[1, 3, 2, 4, 5, 6] (replaced 2nd and 3rd elements)
Until more proxies get pinged and the list gets sorted each time.
Therefore every sub-list of consecutive elements which are all pinged can be sorted and having a long list won't prevent sorting proxies.
Log in here to report bugs or suggest features. Please enter your phone number in the international format and we will send a confirmation message to your account via Telegram.