I poked around in the threading code and managed to get all tests passing with thread pooling enabled.

Enable it yourself to test things out:

-J-Djruby.thread.pooling=true

Thread pooling has been shown to speed up Rails in some cases, especially when net/protocol is involved. It also makes spinning up new threads almost as cheap as green threads if the pool can reuse them (i.e. the first time for n concurrent threads is normal native thread cost, but holding at or under n while spinning up new threads is cheap).

I'd like people to try it out and report any issues they find. I would like this to be officially supported for 1.1, since it helps JRuby better fit many use cases that expect lightweight green threads.

- Charlie

---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to