On Friday, October 26, 2012 12:16:02 PM UTC-7, Rodrigo Rosenfeld Rosas wrote: > > Just to let you know, it seems a Monitor is reentrant if you want to take > this path: > > http://japgolly.blogspot.com.br/2012/04/ruby-mutex-reentrancy.html >
I'm aware of the difference, Mutex is being used on purpose for performance (Monitor is about 2.5x slower). One other limitation with the current code is that it does the connection validation while holding the pool mutex, which means that no other threads can checkout a connection while this connection is being validated. That's very bad. I've modified things so the checking is done while not holding the mutex (in addition to precaching the SQL). I'm just running the changes through a final set of tests, hopefully it will be pushed within 15 minutes. Jeremy -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/sequel-talk/-/Vd4-gpZczIMJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en.
