Re: Reduce execution time in loops

From: Date: Wed, 05 Dec 2001 21:23:28 +0000
Subject: Re: Reduce execution time in loops
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2154@lists.php.net to get a copy of this message
> Umm, I just tried the same thing and the increase in speed was about > 10%, not 80%, like you said. I don't think that remove those 5 lines of > code could bring about such significant increase in speed. That will depend very much on how your benchmark file looks like. I was looping through a big array and there isn't much other code or HTML at all inside the {section}, so those 4 lines were quite important to get rid. Of course, this is not at all the case for most project, so my gain of 45 percent (not 80) was perhaps just a lucky shot. Maybe there isn't a need at all for a manual optimization of the {section} tag as I proposed first. But in the next major version I would like the Smarty compiler to optimize the code like a real compiler, if possible. I know that it would really be a good feature. // Victor

« previous php.smarty.general (#2154) next »