Re: Re[3]: [PHP-DEV] [NEW EXTENSTION]: templates
| From: | Maxx | Date: | Wed, 05 Dec 2001 14:44:52 +0000 |
| Subject: | Re: Re[3]: [PHP-DEV] [NEW EXTENSTION]: templates | ||
| References: | 1 2 3 4 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-72599@lists.php.net to get a copy of this message | ||
> besides, what makes templates slow are either string-replacements or
> regular expressions and these are anyway "core parts" of PHP, thus
> making a module won't speed up anyting. better contribute to PEAR and
> write this template class in PHP - more transparency for other users.
Unfortunately, I can not agree with you, Daniel.
Before making the module, I've been looking through some PHP libraries
dealing with templates. Next, I made a simplest PHP class which works much
faster than any of the existing libraries
(http://www.e-taller.net/dev/obtemplate/).
I made some tests using Web Stress Tool and can provide you with results.
However, the test was very simple too. Probably, I had to do more complex
testing.
Also, I have tested this module and it showed the fastest result. And I am
sure, when I implement another parsing algorythm and get rid of most
emalloc()'s and efree()'s, it will work even much faster.
Please, correct me if I am wrong...
With best regards
Maxx