Re: [SMARTY-DEV] Inlining plugins/modifiers
| From: | Jilles Oldenbeuving | Date: | Fri, 23 May 2003 09:46:04 +0000 |
| Subject: | Re: [SMARTY-DEV] Inlining plugins/modifiers | ||
| References: | 1 2 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-1505@lists.php.net to get a copy of this message | ||
Boots wrote:
-- Andrei wrote ---- I think there is another point that is being missed that makes inlining attractive. Yes, include_once helps as does an accelerator. Andrei's comment is misleading, though: why should performance decrease? Because inlining will cause certain portions of the page to be re-compiled by PHP while they would otherwise just be looked up?This is actually a very good point you're making here. I didn't think about PHP compiling the inlined code.
On the other hand, its tricky business because there are many details to consider, especially in a caching system. Also, it makes plugins more like snippet libraries. Never-the-less, I think inlining merits consideration though I don't think it should be an on-or-off switch.I'd like to see something like this so that everyone could benchmark on his own setup. Jilles