Re: [SMARTY-DEV] more abstraction committed
| From: | Rémy Dufour | Date: | Fri, 09 May 2003 15:09:25 +0000 |
| Subject: | Re: [SMARTY-DEV] more abstraction committed | ||
| References: | 1 2 3 4 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-1433@lists.php.net to get a copy of this message | ||
Great Job Monte !
I think the ultimate goal behind all of this is to aim at the smallest
Smarty core for displaying a cached page. There is no matter if it take
extra second just to compile or cache the page!
...Just my 2 cents...
Rémy
> The numbers can speak for themselves, the speed is definately faster for
> a non-accelerated invironment, and _still_ slightly faster for
> accelerated. So where these particular things you mention may be
> technically slower (albeit negligible) compared side by side, they are
> more than made up for in other areas as a consequence of the changes.
>
> Of course we won't do something that will cause performance penalties.
> And yes, these concerns were thought about when the changes were made,
> but the changes also BOOST performance, so it is a matter of what one
> outweighs the other to make the overall performance better.
>
> Monte
>
> On Fri, 2003-05-09 at 09:29, Andrei Zmievski wrote:
> > On Fri, 09 May 2003, Monte Ohrt wrote:
> > > On another note, as a consequence of abstracting I also reorganized
the
> > > function arguments to be more like Smarty plugins, so instead of:
> > >
> > > funcname($foo1,$foo2,$foo3)
> > >
> > > we now have:
> > >
> > > funcname($params, &$smarty)
> > >
> > > Where $params is an associative array containing $foo1, $foo2, $foo3.
> > > Thich makes things easier to maintain and expand.
> >
> > Do you realize that the more abstraction levels you add, the slower
> > Smarty becomes? For example, passing parameters in an associative array
> > is definitely slower than passing them explicitly.
> >
> > -Andrei
> > http://www.gravitonic.com/
> > * Reality isn't all it's cracked up to be. *
> --
> Monte Ohrt <monte@ispi.net>
>
>
> --
> Smarty Development Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php