Article:
  The Dynamic Duo of PEAR::DB and Smarty
Subject:   Um...
Date:   2003-04-21 11:52:41
From:   anonymous2
People's comments about smarty's speed are misleading. If you look at smarty's benchmarks (the ones they programmed), smarty falls somewhere in the middle of the road. If you want speed, smarty simply is not the way to go. It takes an extreme amount of time for php to interpret the huge classes included (which are required EVEN IF the template has already been "compiled" - which seems to make the compiling step pretty pointless). Check their benchmarks, you may be surprised (and those are even with a php script caching solution like phpAccelerator - if you aren't using one, seriously reconsider using smarty).
Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • Um...
    2003-04-23 20:04:59  jcpm [View]

    But in other systems the 'huge' template related classes are also interpreted. I mean, a PHPLIB based template still needs to parse and execute the main Template class every time it needs to parse and output a template file.

    If Smarty can compile the template file into an actual PHP script, wouldn't you agree that it basically skips one step of the normal process of the 'parse/set variables/output parsed template' chain of events ?

    Cheers,
    Joao Prado Maia