Smarty benchmark, anyone?

前端 未结 10 2007
旧时难觅i
旧时难觅i 2021-01-05 05:05

I am considering Smarty as my web app templating solution, and I am now concerned with its performance against plain PHP.

The Smarty site says it should be the same

10条回答
  •  情歌与酒
    2021-01-05 05:21

    Because in the end, Smarty compiles and caches the templates files to native PHP-code, there is indeed no theoretical performance difference. Of course there will always be some performance loss due to the chunk of Smarty-code that needs to be interpreted every time.

提交回复
热议问题