RE: [PHP] huge memory usage in PHP 4.0.2 object programming?
| From: | Rasmus Lerdorf | Date: | Sun, 17 Sep 2000 05:36:39 +0000 |
| Subject: | RE: [PHP] huge memory usage in PHP 4.0.2 object programming? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-17058@lists.php.net to get a copy of this message | ||
> 2) the result of "free", note the 24M swap usage
>
> total used free shared buffers cached
> Mem: 127760 126640 1120 20444 384 6312
> -/+ buffers/cache: 119944 7816
> Swap: 130748 24948 105800
>
> I hope there is some other ways to fix it!? (Don't write object in PHP?)
No, objects work fine, but don't use objects as a datastore. Rethink your
logic and manipulate your large datasets in the database. Creating
thousands of objects in memory doesn't make much sense to me.
-Rasmus