Forum Moderators: coopster

Message Too Old, No Replies

smarty and Speed

is use of smarty engines generate pages faster?

         

Jaunty Edward

9:12 am on Oct 8, 2005 (gmt 0)

10+ Year Member



Hi,

someone told me that smarty template engine is the next big thing? while I was thinking of making a little website on that just wanted to ask if any of you has some experience with that particularly with the speed. The guy told me the pages come up on the click of a mouse.

Please let me know if you have any idea.

Thanks
Jaunty

lobo235

8:28 pm on Oct 9, 2005 (gmt 0)

10+ Year Member



I use smarty on many of the sites I design. I have used it on a customer's set of ecommerce sites that get a large amount of page hits each day. In all cases it runs fast and makes updating the pages a lot easier. I highly recommend it.

I wouldn't say that it's faster than straight php pages but it is not much slower. The benefit for me is that it's easier to maintain sites that use smarty.

Jaunty Edward

4:16 am on Oct 10, 2005 (gmt 0)

10+ Year Member



Thanks for the reply,
one more small question about installation on the server. Do I have to install it on the hosting server or should I ask the hosting guys to install it. They Use cPanel WHM so if there is a small installation posible from their side it will be fun.

Just let me know do we have to install it or cPanel/WHM has some simple install process for smarty.

Thanks again
Bye

lobo235

1:31 pm on Oct 10, 2005 (gmt 0)

10+ Year Member



It's something you can easily install yourself. There are good installation instructions in the smarty documentation.

SeanW

2:56 pm on Oct 10, 2005 (gmt 0)

10+ Year Member



Remember that Smarty caches precompiled versions of the templates, and can also cache the full page. So, depending on how you write your site, using it can be faster for the most part since you can avoid a lot of repetitive DB calls.

Also use something like MMCache to speed up PHP itself, it makes a big difference.

Sean