From: Caleb Clausen Date: 2010-07-18T02:58:11+09:00 Subject: [ruby-core:31332] Re: [rubysoc] Queue C-extension patch to come On 7/17/10, Benoit Daloze wrote: > On 17 July 2010 06:00, Caleb Clausen wrote: >> That's not really needed. It should be obvious that c code is faster >> than ruby code. > > It is not (for me at least), if you call the "top" Ruby api (which is > directly (or almost) bound to Ruby methods (eg: rb_ary_new()), the > gain is insignificant. (I imagine you only bypass parsing the Ruby > code) Replacing ruby's dynamic method dispatch with c function calls should make a pretty big difference. Executing native instructions instead of bytecodes should also help, tho less so I would think.