From: Yukihiro Matsumoto Date: 2007-12-22T23:52:25+09:00 Subject: Re: Experimental PATCH to improve thread performance Hi, In message "Re: Experimental PATCH to improve thread performance" on Sat, 22 Dec 2007 23:42:03 +0900, Charles Oliver Nutter writes: |JRuby uses native threads, as you know. This increases the cost of |spinning up many threads, since green threads are much cheaper. So in |JRuby, I implemented an optional thread-pooling mode that uses Java's |concurrency APIs. In this mode, threads are reused; the number of native |threads used is only as high as the total number of threads running |concurrently, and those threads get reused until they age out of the pool: Koichi told me about the idea about thread pooling in YARV few weeks ago. He's now concentrating on stability, but after we settled, I think he would start working on performance again. Anyway, I was pretty impressed by your quick works. Thank you. matz.