Re: Smarty and speed

From: Date: Thu, 06 Dec 2001 21:35:26 +0000
Subject: Re: Smarty and speed
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2171@lists.php.net to get a copy of this message
On Thu, 06 Dec 2001, Monte Ohrt wrote: > I do want to move Smarty to a "plugin" type of architecture soon. As I > see it, I'm hoping that as more features and add-ons become available, > they won't affect the size or performance of Smarty. There would be some > sort of plugin repository that you drop the plugins into and they > automatically work. If you don't use a particular plugin, it is never > seen by Smarty.... they are loaded dynamically as they are mentioned in > the templates. With this architecture, we could easily support a plugin > contribution area and supply a core set of plugins with the > distribution. People can then snag plugins from the site that they find > useful. This would also slim down the current size of Smarty as most of > its functionality could be moved to plugins. Maybe even the > caching/debugging features could be dynamically loaded. Sure. But cutting out debugging functionality and read/write cache functions reduces the size of main Smarty class by 200 lines or so. For next major version we should probably think about an approach that involves a really small "driver" class that handle displaying cached files and load additional functionality as necessary. For speed, that class could even be written in C. -Andrei Commitment, n.: Commitment can be illustrated by a breakfast of ham and eggs. The chicken was involved, the pig was committed.

« previous php.smarty.general (#2171) next »