Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
Perl: the Markov chain saw
 
PerlMonks  

Re: OO Baggage

by lzcd (Pilgrim)
on Jan 15, 2001 at 22:43 UTC ( [id://52107]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to OO Baggage

Err... I'm no expert here but I think you'll find most OO implimentations (including C++,Java) tend to just keep a copy of the current objects instance 'stack' in memory (instead of the the entire code base as well).

The only exception to this rule tends be be in the unavoidable areas such as serialization etc.

I'm not saying that it doesn't tend to chew up memory but in these days of relatively cheap memory, I suspect most people have put a larger priority on running speed than memory usage.

Not that I've ever done it in Perl, but you may wish to investigate techniques such as pooling and proxies if memory usage is a concern.

Update: Forgot to mention that there must be at least one copy of the class/code for each different object type/class/thingie/doodad.... er see below. :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://52107]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.