Benchmarking Dynamic Method Creation in Ruby
Posted by matijs 22/04/2011 at 09h30
Let’s look at dynamic method generation. I need it for GirFFI, and if you
do any kind of metaprogramming, you probably need it too. It was
already shown a long time ago that using string evaluation is preferable to using
define_method
with a block.
That is, if you care at all about speed.