Re: Reduce execution time in loops

From: Date: Wed, 05 Dec 2001 20:57:17 +0000
Subject: Re: Reduce execution time in loops
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2153@lists.php.net to get a copy of this message
Victor Boivie wrote: > I don't need the nice variables as "iteration", "rownum", > "index_prev" > etc in my code. I hardly need them at all even in my most advanced > scripts! So I tried to remove the lines for them from my already > compiled tpl-file, and guess what happened? The time it takes for PHP > to render the file (not running my code.. just the template) decreased > from 302 -> 166 ms. That's a quite good speed gain, don't you think? 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. -Andrei "Perl - the only language that looks the same before and after RSA encryption." -Keith Bostic

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