On Thu, 10 Jun 2004, Stefan Esser wrote: > this is not directly releated. I looked into addslashes yesterday and > thought that it would be much better to scan the string 2 times. The > first time to find out how much extra bytes one needs, and the second > time to do the actual replacing. So we do not need to allocate and > oversized block and do not need any kind of realloc. This realloc is an > absolute performance killer.
Yeah, that's a good idea. -Rasmus -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php