No faq, but an archive at:
http://marc.theaimsgroup.com/?l=php-windows&r=1&w=2
A+
Alain

-----Original Message-----
From: Peter Illes [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 31, 2001 8:42 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Re: Performance tuning #2


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




--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to