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

Re: Inside-out objects: encapsulation, spell-check, memory and dumping

by Zaxo (Archbishop)
on Oct 16, 2007 at 06:36 UTC ( #645123=note: print w/ replies, xml ) Need Help??


in reply to Inside-out objects: encapsulation, spell-check, memory and dumping

Regarding performance, my inclination is to put the spell-check subs (sub attribute() returning 'attribute') in a BEGIN block under the assumption that the compiler will optimize away these trivial subs.

Subs are always compiled in BEGIN mode, exclusive of eval tricks. AFAIK, they are only optimized away with a "()" prototype and a constant return value.

After Compline,
Zaxo


Comment on Re: Inside-out objects: encapsulation, spell-check, memory and dumping
Re^2: Inside-out objects: encapsulation, spell-check, memory and dumping
by rir (Vicar) on Oct 18, 2007 at 13:03 UTC
    Anonymous subroutines are normally generated at runtime.

    Be well,
    rir

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2014-12-19 03:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (70 votes), past polls