Re: [SMARTY-DEV] more abstraction committed

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

« previous php.smarty.dev (#1431) next »