From: Ilmari Heikkinen Date: 2007-09-21T02:40:58+09:00 Subject: Re: Do C Extensions Block Ruby? On 9/20/07, hemant wrote: > On 9/20/07, Ilmari Heikkinen wrote: > > On 9/20/07, Wayne E. Seguin wrote: > > > On Sep 19, 2007, at 17:15 , Joel VanderWerf wrote: > > > > ...except when you call back into ruby from your C code (right?). > > > > Then the thread scheduler could get a chance to do its thing. > > > Joel, > > > > > > Thank you for the response. > > > > > > How do you call back? Is that the rb_thread_schedule() method? > > > > Or rb_funcall(). Basically any call that executes ruby code. > > > > rb_funcall() is slow as shit, avoid it if you can. > And logging touches disk, not like the 10 usec or so spent in rb_funcall is going to do much difference there :|