From: Lyle Johnson Date: 2002-12-14T08:33:17+09:00 Subject: Re: Ruby slow?? Matt Armstrong wrote: > That test creates 100,000 ruby threads and uses lots of thread > primitives. Threads are pretty slow in Ruby because of the way they > are implemented (each thread switch involves a large memcpy() of the > stack). It doesn't create 100,000 threads, only two. But I would guess that you are correct that it's all of the context-switching that's slowing it down. > Ruby should probably steal thread implementation ideas from Perl, > Python or Pike. ;-) Perhaps this will happen with Rite. Perl and Python use native (OS) threads. I think Matz has hinted in the past that Rite will also support native threads.