Re: cvs: php4 /ext/standard string.c

From: Date: Wed, 26 Sep 2001 21:12:07 +0000
Subject: Re: cvs: php4 /ext/standard string.c
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-7575@lists.php.net to get a copy of this message
On Wed, 26 Sep 2001, Andi Gutmans wrote: > Another possibility would be to emalloc() the maximum size and then > erealloc() to a smaller size in the end. It would make the function nicer > IMO or do you feel the short memory burst will be too much? I don't think > strings longer than a couple of K are ever passed to this function so it > should be fine. I know some people using like 50k's in there... it will have a spike to 300k then, which is not good IMO. Derick --------------------------------------------------------------------- PHP: Scripting the Web - www.php.net - derick@php.net SRM: Site Resource Manager - www.vl-srm.net ---------------------------------------------------------------------

« previous php.cvs (#7575) next »