Re: [SMARTY-DEV] Inlining plugins/modifiers
| From: | Andrei Zmievski | Date: | Thu, 22 May 2003 16:53:52 +0000 |
| Subject: | Re: [SMARTY-DEV] Inlining plugins/modifiers | ||
| References: | 1 2 3 4 5 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-1493@lists.php.net to get a copy of this message | ||
On Thu, 22 May 2003, Jilles Oldenbeuving wrote:
> This "assembling" that is done by PHP, includes opening a file, right?
No.
> This can be safed if Smarty would inline the used modifiers in the
> compiled template. It's an opportunity for Smarty to optimize, IMHO.
Inline will increase the size of the code and will actually reduce the
performance. The only overhead currently is a hash lookup in
include_once() to see whether the file has already been included.
-Andrei
* The future has arrived, it's just not evenly distributed. -W. Gibson *