Big array problem.

From: Date: Wed, 29 Oct 2003 02:55:25 +0000
Subject: Big array problem.
Groups: php.general 
Request: Send a blank email to php-general+get-167960@lists.php.net to get a copy of this message
Hi,there, I am currently using Phrame as my MVC framework. In my project there're more than 50 actions in one of the modules.That means everytime when the script loaded a big array would be initialized.And that would take up too much memory. Of course I can break up the module into serval small ones so that the size of mapping array can be reduced.However,That would decrease the maintainability. Now what I am not sure is how big an array in a script is suitable and how to measure how much memory is taken up by creating an array. Now I estimate the size by looking at the MEM usage of httpd from the process list. Thanks for reading this mail and I would really appreciate any help you give me:) Yz.Cai <yzcai@ustc.edu>

« previous php.general (#167960) next »