http://www.perlmonks.org?node_id=339593


in reply to Re: Re^3: (~OT) How to measure Perl skills?
in thread How to measure Perl skills?

There's a method cache table??? You [or I, in this case] learn something new everyday.

-QM
--
Quantum Mechanics: The dreams stuff is made of

  • Comment on Re: Re: Re^3: (~OT) How to measure Perl skills?

Replies are listed 'Best First'.
Re: Re: Re: Re^3: (~OT) How to measure Perl skills?
by diotalevi (Canon) on Mar 25, 2004 at 00:03 UTC
    Sure. If you say $obj->foo more than once only the first time suffers an OO penalty. The rest are just hash lookups and IIRC aren't more expensive than function calls. The whole OO-penalty thing people go on about is really about the process of finding foo in $obj's @ISA but that only happens when there isn't a current cache entry to pull from.