Re: [SMARTY] Smarty Light
| From: | boots | Date: | Thu, 08 Jul 2004 18:40:59 +0000 |
| Subject: | Re: [SMARTY] Smarty Light | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11548@lists.php.net to get a copy of this message | ||
--- messju mohr <messju@lammfellpuschen.de> wrote:
> On Thu, Jul 08, 2004 at 11:09:06AM -0700, Ara Anjargolian wrote:
> > This is not a matter of just removing a few extensions. I realize
> > that anything in an extension is loaded on request and therefore
> > has no effect on performance when not used. I looked
> > through the compiler class and am fairly certain I can remove alot
> > of its heft by taking a few of the less used features out. Now
> > if you use an accelerator this probably won't make any difference,
> > but if you don't it could speed up things a decent amount.
>
> no. you would gain hardly anything. the compiler is only run the
> first
> time you display a template. all subsequent calls to display() for
> that template use the compiled template and the compiler isn't
> touched
> anymore.
>
> profile the code before you start optimizing. :)
Plus, if you fork you own--you are on your own in-terms of keeping the
code up-to-date. Hardly seems worthwhile to me.
xo boots