On Fri, Dec 12, 2008 at 11:30:09AM -0600, Daniel P Zepeda wrote: > So I was digging around trying to figure out some performance issues > involving Ruby at work. Turns out that enabling pthreads can give you quite > a performance wallop on OSX and Linux. Got me wondering if pthreads is > enabled in the Ruby that Shoes uses. Anybody know off they top of their > head? What version of Ruby is used with Shoes?
For the Linux binary that I release, I use Ruby 1.8.7-p72, compiled as a shared lib, without pthreads. I use pthreads on Linux for HTTP threads only. If you're compiling yourself, you'll need to check the config.h of the package you're building from. If _THREAD_SAFE is defined, then you're using the slower, threadsafe build. _why
