Re: [SMARTY-DEV] challenging Smarty - componentized template
| From: | Andrei Zmievski | Date: | Wed, 18 Feb 2004 19:18:52 +0000 |
| Subject: | Re: [SMARTY-DEV] challenging Smarty - componentized template | ||
| References: | 1 2 3 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-2122@lists.php.net to get a copy of this message | ||
On Mon, 16 Feb 2004, Monte Ohrt wrote:
> {include_php ...} isn't necessary unless you want to quarantine the
> functionality to a "trusted" directory outside of the plugin directory.
> I would recommend using custom functions whenever possible. I doubt
> there is a significant performance difference between them, but I
> haven't benchmarked it myself.
Once you get past the include_php vs include difference, a big hit on a
high-volume site is the include itself. It has to do a stat for every
component of the include_path to locate the file and then also parse
(without opcode cache) and execute it. So you should really watch how
many includes per page you are doing.
- Andrei