Re: challenging Smarty - componentized template

Andrei Zmievski <[email protected]>
Newsgroups gmane.comp.php.smarty.devel
Message-ID <[email protected]>
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

-- 
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.