Re: [PHP] Re: PHP memory usage

2003-01-03 Thread Rick Widmer
At 01:25 AM 1/3/03 -0200, Fernando Serboncini wrote: function a(myclass c) { return c; } would create another copy of "c" in memory. Things get a bit larger when you go with linked-list like structures in classes, where you have to take really good care to don't duplicate data. If you're no

[PHP] Re: PHP memory usage

2003-01-02 Thread Fernando Serboncini
I don't know if I'm talking bullshit, but don't forget that each parameter or return valeu in php, if not explicited as a pointer, it's a copy of the full parameter. This way, any function a(myclass c) { return c; } would create another copy of "c" in memory. Things get a bit larger when you