Since the point is to make the pool faster in high latency situations, is
there any reason to not initialize the connections in parallel?
Something like:
def preconnect
(max_size - size).times
.map{ Thread.new{ make_new(nil) }}
.map(&:value)
.each{ |c| checkin_connection c }
end
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.