Re: an HTML_Template_IT[X] fork is available
| From: | Alexey Borzov | Date: | Tue, 11 Feb 2003 12:25:36 +0000 |
| Subject: | Re: an HTML_Template_IT[X] fork is available | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-13096@lists.php.net to get a copy of this message | ||
11 Февраль 2003 15:14, Bertrand Mansion написал:
> Did you manage to improve the parsing in terms of speed ?
Well, in some way i did:
1) parse() uses str_replace() instead of preg_replace() for variable
substitution. Unknown placeholders are removed only on get(), not on every
parse()
2) Caching of templates helps to eliminate the need to do expensive RegExp
matching on every page request. It improves speed almost by an order of
magnitude.
>
> I've been using the previous version you proposed and noticed some
> incompatibilities on the touchBlock() method with the stock version. How do
> you handle this now ?
Didn't check this... Can you elaborate?
> Thanks,
>
> Bertrand Mansion
> Mamasam