By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,991 Members | 1,888 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,991 IT Pros & Developers. It's quick & easy.

OOP and RAM usage

P: n/a
How is it with RAM usage by classes and objects?

I found out that PHP4 uses more RAM than needed (read: make too more
copies of data) - perhaps while calling functions or creating class.

How is it in PHP5?

Are all functions of class copied in the RAM for every created object?

Jun 2 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
we******@gmail.com wrote:
How is it with RAM usage by classes and objects?

I found out that PHP4 uses more RAM than needed (read: make too more
copies of data) - perhaps while calling functions or creating class.

How is it in PHP5?

Are all functions of class copied in the RAM for every created object?
If you care about RAM usage, I'd suggest you program in C or another
language that allows you to manage resources effectively. Or, just get
more RAM, it's cheap. ;)

--
gosha bine

extended php parser ~ http://code.google.com/p/pihipi
blok ~ http://www.tagarga.com/blok
Jun 2 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.