client.pool: Optimise getConnForNode for most likely execution path.
Connection is more often established than not, so do a first lookup without locking, and only acquire it if it misses. Then do a second lookup in case another thread also established connection, and connect if it still misses.
Showing
Please register or sign in to comment