note 85785 added to ref.array
| From: | renatonascto at gmail dot com | Date: | Wed, 17 Sep 2008 18:11:10 +0000 |
| Subject: | note 85785 added to ref.array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-144488@lists.php.net to get a copy of this message | ||
Big arrays use a lot of memory possibly resulting in memory limit errors. You can reduce memory
usage on your script by destroying them as soon as you´re done with them. I was able to get over
a few megabytes of memory by simply destroying some variables I didn´t use anymore.
You can view the memory usage/gain by using the funcion memory_get_usage(). Hope this helps!
----
Server IP: 200.185.109.13
Probable Submitter: 200.196.77.130
----
Manual Page -- http://www.php.net/manual/en/ref.array.php
Edit -- https://master.php.net/note/edit/85785
Del: integrated -- https://master.php.net/note/delete/85785/integrated
Del: useless -- https://master.php.net/note/delete/85785/useless
Del: bad code -- https://master.php.net/note/delete/85785/bad+code
Del: spam -- https://master.php.net/note/delete/85785/spam
Del: non-english -- https://master.php.net/note/delete/85785/non-english
Del: in docs -- https://master.php.net/note/delete/85785/in+docs
Del: other reasons-- https://master.php.net/note/delete/85785
Reject -- https://master.php.net/note/reject/85785
Search -- https://master.php.net/manage/user-notes.php