From: Regis d'Aubarede Date: 2010-12-15T21:22:50+09:00 Subject: Re: Ruby 1.9.2 : Io performance when application use multithread Eric Hodel wrote in post #968393: > On Dec 14, 2010, at 11:07, Eric Hodel wrote: > For the windows slowdown, perhaps better buffer sizes will help. It's > possible that in threaded mode your odd-sized buffers are causing some > kind of starvation. Test of your version with ruby 1.9.1 on linux : 30% better flow, but 10% diff between thread/no thread keep on. Perhaps the GIL cost is effective : the reading loop is very short : while(len>0) len-=io.read(x) end and so GIL do while() release(GIL); io.read; get(GIL) end And GIL cost is perhaps less heavy on OSX then on Windows. > If this doesn't help your speed issue try reporting this to the > ruby-core mailing list. Its done, but no response... Thank you very much for your suggestions, Regis -- Posted via http://www.ruby-forum.com/.