Reply to Re: [PHP] Re: Templating engines

Your name:

Reply:


Posted by Robert Cummings on 04/30/05 07:17

On Fri, 2005-04-29 at 23:55, Rasmus Lerdorf wrote:
> Robert Cummings wrote:
> > I don't think that templates have a dependency between the number of
> > pages using the template and an increase in the number of functions. In
> > fact depending on the template, and the template engine, you can have
> > 500 pages using the template and not a single function call. Including
> > the elimination of include() and include_once() calls since if the
> > template engine compiles to PHP it can do the includes at compile time
> > rather than punting to PHP to do at run-time.
>
> While compiling to PHP is by far superior to the various terrible eval()
> and regex-based templating layers out there, it is still dog-slow
> compared to tight specialized PHP code. Just instantiating the base
> Smarty class, for example, takes a very long time. I optimized a Smarty
> site a while back where I got a 50% speedup by migrating the base Smarty
> class to C in an extension.

This isn't a problem for engines that compile to PHP source that has
direct hooks into the necessary data structures that will contain the
data at run time.

Smarty isn't one of them though :)

Cheers,
Rob.
--
..------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация