Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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
Replies are listed 'Best First'.
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 examining the Monastery: (6)
As of 2016-04-29 21:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    :nehw tseb si esrever ni gnitirW







    Results (441 votes). Check out past polls.