Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Anti-inside-out-object-ism

by adrianh (Chancellor)
on Dec 10, 2005 at 21:43 UTC ( #515752=note: print w/ replies, xml ) Need Help??


in reply to Re: Anti-inside-out-object-ism
in thread Anti-inside-out-object-ism

There is overhead associated with DESTROY that doesn't exist (in quite the same way) for hash-based objects where garbage collection is left to Perl rather than done by hand. If lots of objects are being generated and destroyed, this may be an issue for some individuals.

Although when I've benchmarked inside-out vs hash based versions of objects in real world scenarios the overhead of the extra DESTROY just disappears in the noise.

I suspect it's going to be a rare environment where one extra method call perl object makes a significant difference.


Comment on Re^2: Anti-inside-out-object-ism

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2015-08-01 00:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (285 votes), past polls