Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

by diotalevi (Canon)
on Mar 24, 2004 at 23:40 UTC ( #339590=note: print w/ replies, xml ) Need Help??


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

This is a nit but anytime the symbol table is altered the method cache table is invalidated so all your calls to $obj->foo have to do the full @ISA check again as well. That makes it nice to do symbol table updates only as needed or preferrably before the cache is going to be desired.


Comment on Re: Re^3: (~OT) How to measure Perl skills?
Re: Re: Re^3: (~OT) How to measure Perl skills?
by QM (Vicar) on Mar 24, 2004 at 23:53 UTC
    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

      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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://339590]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (18)
As of 2014-10-30 14:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (208 votes), past polls