On 30.01.2009, at 18:09, romtek wrote:

On Fri, Jan 30, 2009 at 4:57 AM, Kornel Lesiński <kor...@aardvarkmedia.co.uk > wrote:
On 30-01-2009 at 03:13:16 romtek <rom...@gmail.com> wrote:

Assuming that unwinding when handling exceptions is more time consuming than using if/else mechanism, wouldn't it be better to build this ability into

Yes, exceptions are slower, but it doesn't make noticeable difference unless you make thousands of macro calls in a template (and in such performance-sensitive situation I'd rather inline the code and/or cache output).

By inlining the code do you mean mixing HTML with PHP statements?

Yes, or using TAL code without macro (copy&paste macro's code instead of invoking it). Please note that such solution is rarely needed - usually you can just use macro and don't worry about invocation overhead at all.

regards, Kornel

PHPTAL mailing list

Reply via email to