Re: CGI quick cleanup

From: Date: Fri, 23 Nov 2001 10:53:37 +0000
Subject: Re: CGI quick cleanup
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-71456@lists.php.net to get a copy of this message
Hi Edin! On Fri, 23 Nov 2001, Edin Kadribasic wrote: > I have noticed the same problem with a scipt that used a very large array > (~160 MB). The script run time was around 35 seconds, while it took over 4 > minutes to shut down! Same amount of time was used in trying to unset() the > array. [wild guess] probably the memory deallocation is the one expensive here. BTW, don't use large arrays in PHP as Apache module cause when the process grows requesting more memory (brk(2)) it cannot release it back to the system (because the httpd process is still running). -- teodor

« previous php.dev (#71456) next »