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

Reply via email to