Date: 04/30/00
- Next message: Björn Schotte: "Re: [phplib] PHP code in PHPLib templates"
- Previous message: Toby Cabot: "Re: [phplib] PHP code in PHPLib templates"
- Next in thread: Björn Schotte: "Re: [phplib] PHP code in PHPLib templates"
- Reply: Björn Schotte: "Re: [phplib] PHP code in PHPLib templates"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>
> 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>
- Next message: Björn Schotte: "Re: [phplib] PHP code in PHPLib templates"
- Previous message: Toby Cabot: "Re: [phplib] PHP code in PHPLib templates"
- Next in thread: Björn Schotte: "Re: [phplib] PHP code in PHPLib templates"
- Reply: Björn Schotte: "Re: [phplib] PHP code in PHPLib templates"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

