Re: [phplib] PHP code in PHPLib templates From: Toby Cabot (toby.cabot <email protected>)
Date: 04/30/00

>
> i personally use FastTemplate. but the concept is the same.
>

The concept is the same, but the implementation is *very* different. The original perl fast templates, and the phplib template class, do one regular expression substitution per parse() call. The php FastTemplate implementation over at thewebmasters.net does one ereg_replace _per_keyword_ per parse() call, and is therefore *much* slower (less fast?) than the other two.

For example, bookmarker (at renaghan.com/bookmarker) displays its list page 2.5 times faster with a single ereg_replace per parse than with the original FastTemplate approach (in this case I patched FastTemplate to make it work like phplib template).

Cheers,
Toby

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>