Re: [SMARTY] optimization techniques

From: Date: Fri, 20 Dec 2002 14:27:07 +0000
Subject: Re: [SMARTY] optimization techniques
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6914@lists.php.net to get a copy of this message
On Fri, 2002-12-20 at 05:16, Rasmus Schultz wrote: > as long as you use caching, I don't really think you have anything > to worry about? it a page is cached, it makes no significant difference > if it takes 0.1 or 1.0 seconds to compile and render ... and switching > off $compile_check doesn't make that much of a difference, so if you > find it useful, just keep it on ... If you have compile_check on, Smarty must do a file stat on every template file and config file that was used for that cached page, so it does make a performance difference. Multiply that by the amount of hits you get... it is worth turning off if you can. > > ... for example, our site was performing 20 SQL queries per second - > thanks to caching, it's down to 1 SQL query per second - and the number > of queries doesn't increase with the number of page loads per second, > since everything is cached! :) > > previously, I would never have used stuff like dynamic image width and > height lookup, but again thanks to caching, there's no need to worry > about such stuff - the only time you really need to worry, is when > your template is totally dynamic, i.e. never cached for some reason ... > then all the normal programming optimization techniques of course > apply: keep the number of loops and if's to as little as possible etc. > > other than that, I wouldn't worry myself :) > > --- At 2002-12-19, 23:50:00, Paul Lockaby <paul@dostuff.net> wrote: > > >What optimization techniques can people recommend in a nutshell? Yes, I > >have read the manual and seen things like turning off $compile_check and > >use caching, but I'm sure that there are other techniques that may not > >necessarily be related to settings in Smarty, but rather to the actual > >programming techniques involved with the templates. Any comments would > >be appreciated! > > > >~Paul > > > > > >-- > >Smarty General Mailing List (http://smarty.php.net/) > >To unsubscribe, visit: http://www.php.net/unsub.php > -- Monte Ohrt <monte@ispi.net>

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