From: Paul Brannan Date: 2008-01-06T11:40:13+09:00 Subject: Re: Experimental PATCH to improve thread performance Brent Roman wrote: > Hi Nobu, > > Thanks for at least looking at this little hack. > I would assume, given the great performance of 1.9 on > these benchmarks, that ruby19 is not copying stacks at all. > I actually see a way to avoid all stack copying on > context switches for the ruby18 and 16 series, but > I probably won't bother implementing it because I > expect you'll have 19 debugged soon. I've tried getting rid of the stack copying, but it's definitely nontrivial. The stack copying causes problems in our C++ extensions, so our rule of thumb is to not use threads at all when those extensions are being used (there is a safe way to make it work, but it's easier just to use an event loop). I still haven't tried the patch yet against our threaded code, but I'll try to play with it this week. Paul