Re: [SMARTY] Smarty-Light
| From: | (Markku Niskanen) | Date: | Thu, 15 Jul 2004 07:24:21 +0000 |
| Subject: | Re: [SMARTY] Smarty-Light | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11600@lists.php.net to get a copy of this message | ||
On Wed, 14 Jul 2004 19:19:20 -0400, you wrote:
>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
All this makes me wonder where the speed difference really
comes from. Unused features only affect the class loading
time and if a kept feature (a loop, for instance) is used
the same way it should take the same CPU cycles to run.
If the 'section' code, for instance is in the class but I do not
use it it should only use CPU when parsing/compiling the
class.
If there is very little other optimization a 'light' version should
not be significantly faster after loading the class. Am I missing
something?
Markku