Re: [SMARTY] Smarty-Light
| From: | (Markku Niskanen) | Date: | Thu, 15 Jul 2004 12:32:56 +0000 |
| Subject: | Re: [SMARTY] Smarty-Light | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11602@lists.php.net to get a copy of this message | ||
On Thu, 15 Jul 2004 06:20:28 -0400, you wrote:
>and objects, then my regular expressions don't have to work as hard.
>Etc.
All right... so the checkings require CPU time? I suppose you have
done proper profiling so I will not argue :)
>You are missing and not realizing just how slow PHP is at loading and
>compiling classes and associated code. Remember, without an
No, I am not. I have done some experimening as well and do
know the difference. I did some testing and found out the following
average class loading times (sec, PHP5, P300,Linux), please
note that they ONLY apply to loading the class and will be nil
in an opcode-cached environment.
Smarty.class.php 0.05109
Smarty.class.php (no whitespace) 0.04538
class.template.php (Smarty-Light) 0.02190
class.template.php (no whitespace) 0.02118
So there seems to be a difference. As for running real-life apps
I cannot test your class as it lacks several features that I use in
ny every application and cannot live without. Those who do
not need them may benefit from your version.
Markku