Re: Performance tuning #2

From: Date: Mon, 31 Dec 2001 16:41:39 +0000
Subject: Re: Performance tuning #2
References: 1 2 3  Groups: php.windows 
Request: Send a blank email to php-windows+get-11237@lists.php.net to get a copy of this message
Thanks, Manuel, those are both very good ideas that we will make use of. My original problem is simpler than that, though: I'd like to pre-allocate a buffer for the string. Is this possible in PHP? This is possible in both C/C++ and Delphi (with SetLength() in Delphi). The reason for this to have let's say 4-5 re-allocations instead of ~10,000+ re-allocations. Of course we could get into the source of PHP to add the functionality (or alternatively, roll our own cache object), but this is a very basic feature, and I'm sure it does have it, I'm just too unlucky not finding out how... Happy New Year, Peter

« previous php.windows (#11237) next »