Welcome to Server Circle. It's a friendly site and all levels of experience are welcome. Be aware that we use cookies for your login.
Server Circle - Ask questions about Servers and get answers from experts.
Beta (0.93 sec)
Will the Smarty engine cause a performance hit with PHP ?

Will using the Smarty engine alongside PHP cause a performance hit ?

Surely it's a mark-up language too that needs CPU time.

Asked by:
BonoEstente
1464 points
 Report Abuse
 Share Page - Category: Programming - Tags: Will the Smarty engine cause a performance hit with PHP ?
 Enter your response
Please use Pastie.org to paste lengthy code or to fix formatting issues with code
  • Responses in reverse (1)

Best Answer

Any PHP script loaded and executed causes a "performance hit".

The question you should be asking is if Smarty's overhead is compensated by

(a) using caching (to avoid duplicate execution of say database queries)

(b) better maintainability of your markup / application

If done right, (a) is a big fat yes. (b) is a cost I willingly pay

Response by:
rodneyrehm
51 points


  • Related Questions
About Us : Contact Us : Etiquette : Terms : CDN Failover : ShorterURL : CDN Fallback : © 2013 Server Circle