Ilmari Heikkinen
9/20/2007 5:41:00 PM
On 9/20/07, hemant <gethemant@gmail.com> wrote:
> On 9/20/07, Ilmari Heikkinen <ilmari.heikkinen@gmail.com> wrote:
> > On 9/20/07, Wayne E. Seguin <wayneeseguin@gmail.com> 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 :|