Re: Re: Any idea why we have two html_puts()'s?
| From: | Zeev Suraski | Date: | Sun, 12 May 2002 15:29:24 +0000 |
| Subject: | Re: Re: Any idea why we have two html_puts()'s? | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-83935@lists.php.net to get a copy of this message | ||
At 18:24 12/05/2002, Sascha Schumann wrote:
I'm trying to understand why you care so much about its performance..? There are cases where duplicating code for performance reasons makes sense, but I don't see how this function falls into that category. Either way, enabling output buffering for it should definitely do the trick, even if it's a couple of percent slower than the specialized implementation. Are you using it in some module? Because the only code to currently make use of it is phpinfo(), and it isn't noticeably slow even in the current byte-by-byte method... Zeev- it is buffering as you already noted without having to rely on the huge output-buffering infrastructure. I have not benchmarked it, but I do assume that it is noticably slower than php_html_puts.- it is faster due to passing TSRMLS around, instead of having to fetch it for *every* single examined byte. This is especially significant in threaded environments such as Apache 2 or ISAPI.