Re: [SMARTY] Smarty-Light
| From: | Paul Lockaby | Date: | Wed, 14 Jul 2004 23:19:20 +0000 |
| Subject: | Re: [SMARTY] Smarty-Light | ||
| References: | 1 2 3 4 5 6 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11595@lists.php.net to get a copy of this message | ||
Features I took out:
* pre/post/output filters
* include_php and php tag, smarty-light only processes php directives in if-then statements and nowhere else
* section tag (I use foreach for all my section needs)
* security features
* error handling, doesn't die very gracefully
* no support for objects or classes
* no support for template resources, templates must come from a file
Smarty-Light still compiles and caches and runs config files. After going through most of the Smarty code, I probably ended up rewriting more than 80% of it. In the end, the vast majority of code was new and I used Smarty more for a design reference than a code reference. I got my speed from rewriting and optimizing routines.
I'm curious about PHP5 and plan to test it out to see what kind of speed differences it makes on object oriented programming. It offers a lot of features that make OOP a lot more mature, but I'm hesitant to take advantage of them until more servers upgrade to PHP5, though I feel that perhaps leaving the PHP4 version available and starting work on a PHP5 version while backporting compatible changes would be feasible.
Paul Lockaby
On Jul 14, 2004, at 4:12 AM, Markku Niskanen wrote:
Paul,and still is, in my opinion, bloated and slow. That's why I forked it. And I wrote it with speed in mind, doing benchmarks with every major change. Code size definitely makes a difference with speed and PHPMay I ask you what the most significant parts you left out of the code were? And another thing: If you use the same subset of template features with the "bloated" code and your "thin" code, where do the speed difference com from? Loading the base class? Other optimized places? Markku -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php