Chaim Frenkel <[EMAIL PROTECTED]> writes: >>>>>> "GB" == Graham Barr <[EMAIL PROTECTED]> writes: > >>> I thought I was saving the constant search along the @ISA, do it only >>> once. > >GB> Well perl5 already does that. The first time a method is called it searchs >GB> ISA, but it caches the result in the package the object is blessed >GB> into, so next time it finds it without searching ISA > >I was pushing the first caching operation into the compiler. It already >has done most of the work, so it should be a win here. Almost none of Tk's methods exist at compile time (in the perl5 version) as they are DynaLoaded later. But I could fix that ... But this is generally true - for all the ->method calls in the base classes. -- Nick Ing-Simmons
- selectively invalidating cached inherited methods (as Re:... David L. Nicol
- Re: selectively invalidating cached inherited methods (as... Dan Sugalski
- Re: Method call optimization. Chaim Frenkel
- Re: Method call optimization. Nick Ing-Simmons
- Re: Method call optimization. Chaim Frenkel
- Re: Method call optimization. Nick Ing-Simmons
- Re: Method call optimization. Chaim Frenkel
- Re: Method call optimization. Chaim Frenkel
- Re: Method call optimization. Graham Barr
- Re: Method call optimization. Chaim Frenkel
- Re: Method call optimization. Nick Ing-Simmons
- Re: Method call optimization. David L. Nicol
- Re: Method call optimization. Dan Sugalski
- Re: Method call optimization. Nick Ing-Simmons
- Re: Method call optimization. Nick Ing-Simmons
- Re: Method call optimization. Nick Ing-Simmons
- Re: Ramblings on "base class" for SV etc. Ken Fox
- Re: Ramblings on "base class" for SV etc. Larry Wall
- Re: Ramblings on "base class" for SV etc. Dan Sugalski
- Re: Ramblings on "base class" for SV etc. Chaim Frenkel
- Re: Ramblings on "base class" for SV etc. Dan Sugalski