Re: [SMARTY-DEV] more abstraction committed
| From: | Monte Ohrt | Date: | Fri, 09 May 2003 14:49:19 +0000 |
| Subject: | Re: [SMARTY-DEV] more abstraction committed | ||
| References: | 1 2 3 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-1432@lists.php.net to get a copy of this message | ||
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>