I'm implementing some code that calls the same method multiple times
from C. I'd like to cache the method to avoid costly method lookup. Is
this possible?

Something like

    METHOD * m = rb_method_lookup(object, rb_intern("doit"));
    rb_invoke(m, args...)

Is any such thing possible?

Thanks
Samuel

Unsubscribe: <mailto:ruby-talk-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>