Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by Zaxo (Archbishop)
on Oct 16, 2007 at 06:36 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://645123]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-20 14:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found