From: Kristof Bastiaensen Date: 2004-04-25T08:19:09+09:00 Subject: Re: Psyco On Sun, 25 Apr 2004 00:32:34 +0900, ts wrote: >>>>>> "K" == Kristof Bastiaensen writes: > > K> A good way to speed up Ruby's method calling would be to > K> cache Class-information. It should cache only one value, > K> because mostly methods are called on the same class, > K> except the generic ones (like each, etc..). If it finds > K> the same class, it could directly call the associated method, > K> (with a dirty bit, if the method was changed recently). Otherwise > K> it would look up the method. > > What do you think that ruby do actually ? > > svg% fgrep cache? eval.c > /* is it in the method cache? */ > /* is it in the method cache? */ > svg% > I meant caching at the point of invokation. Is this the way it is actually done in Ruby?