basho/riak-ruby-client — pull request #40 by mtoledo (2012-06-12 16:11:39+00:00)
Title: Remove element creation from inside the mutex on the pool

This way element creation can happen in parallel, and also the potentially expensive operation (opening connections) doesn't hold the lock preventing other pool clients from accessing the pool.

PS. I actually just edited this on the github editor - I haven't used the riak library before, and can't setup an environment to make sure the tests are passing or that the fix is correct etc at the moment. I hope I can convey the idea of the pull and that a core committer will double check this for correctness before pulling. Thanks!