client.pool: Optimise iterateForObject for most likely cases.
Nodes are likely to be running, so filtering before sort is unlikely to save time. Caller is likely to stop iterating after first yield connection ("load" case), so move filtering inside loop. Also, document non-straightforward code.
Showing
Please register or sign in to comment