Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Encoding Smarty for speed

 
Post new topic   Reply to topic    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
NuAlpha
Smarty Regular


Joined: 08 Jan 2004
Posts: 71
Location: US

PostPosted: Fri Mar 11, 2005 8:32 pm    Post subject: Encoding Smarty for speed Reply with quote

Has anyone tried using IonCube or the Zend Encoder to encode all of Smarty (except the templates) to get an extra speed boost?
_________________
Smarty -> v2.6.11
PHP -> v5.2.1
Back to top
View user's profile Send private message
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Fri Mar 11, 2005 10:08 pm    Post subject: Reply with quote

The Zend encoder's main purpose is to "protect" your code from prying eyes. It does some optimization but it does not help with performance in a big way. I can't understand that product, really. (Yes, I know what people use it for and why, I just don't think that way.)

What you want is a PHP accelerator -- those cache compiled scripts and have a very large performance impact on Smarty. They rock! I use eAccelerator on both Linux and Windows and am quite pleased with it. Any accelerator will be a benefit for Smarty.
Back to top
View user's profile Send private message
NuAlpha
Smarty Regular


Joined: 08 Jan 2004
Posts: 71
Location: US

PostPosted: Fri Mar 11, 2005 10:20 pm    Post subject: Reply with quote

Already running a PHP accelerator. I was just hoping to get a bit more of a speed boost out of encoding it if possible. Smile
_________________
Smarty -> v2.6.11
PHP -> v5.2.1
Back to top
View user's profile Send private message
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Fri Mar 11, 2005 11:37 pm    Post subject: Reply with quote

If you are running PHP as a module (not cgi) then speed effects of encoding (if any) will probably be negated by an accelerator. If it is the optimizations that you are after, I can say that eAccelerator includes an optimizer which I usually keep on but rarely see any difference from. I haven't used Zend's optimizer in awhile; while I suspect that it may be better than eAccelerator's I also suspect that the performance impact will at best be minor.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP