Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: OO Baggage

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


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
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (9)
As of 2024-04-18 12:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found