Re: [SMARTY] Smarty Light
| From: | messju mohr | Date: | Thu, 08 Jul 2004 18:30:50 +0000 |
| Subject: | Re: [SMARTY] Smarty Light | ||
| References: | 1 2 3 4 5 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11547@lists.php.net to get a copy of this message | ||
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. :)
> Anyway though, I guess the best way to find out is to actually give it a
> try and see if I get anywhere. I probably wont get to try this
> until sometime in late August but when I do I will report back
> with the results.
>
> Thanks,
> Ara Anjargolian
greetings
messju
> Martin Braun wrote:
> >Mrak sagte:
> >
> >>All the listed features (except sections maybe) are loaded on request
> >>only and hence do not affect performance... moreover, if you take a
> >>closer look at the smarty object, you can easily "turn off" features
> >>loaded by default, hence I do not see a point in even thinking about
> >>smarty light
> >
> >
> >i don't see any need for smarty light, but if you really want to strip
> >smarty off some features, all you have to do is to delete the associated
> >files.
> >
> >however, this shouldn't gain any perfomance, just a few KB of disk space.
> >
> >I'm no smarty developer, but I think ripping other functions from smarty
> >would only gain perfomance during the compiling process - remember smarty
> >compiles it's templates to PHP-files anyway, and compiling shouldn't
> >happen all the time.
> >
> >just theorizing....
> >
> >cheers
> >martin
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php