|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
akyahoo Smarty Rookie
Joined: 08 Dec 2008 Posts: 9
|
Posted: Mon Dec 29, 2008 6:08 am Post subject: Can Smarty compile PHP into binary code? |
|
|
Can Smarty compile PHP into binary code? Or still run PHP like Visual Basic, which means that computer run sentences one by one? |
|
Back to top |
|
Celeb Administrator
Joined: 17 Apr 2007 Posts: 1025 Location: Vienna
|
Posted: Mon Dec 29, 2008 8:20 am Post subject: |
|
|
Smarty only compiles into PHP code. This means that templated only need to be parsed once (for variable replacements etc) but need to be interpreted on every call by the PHP interpreter.
Smarty 3 will allow custom compilers to be used so maybe somebody will come up with a compiler that creates binaries. _________________ Darn computers always do what I tell them to instead of what I want them to do. |
|
Back to top |
|
akyahoo Smarty Rookie
Joined: 08 Dec 2008 Posts: 9
|
Posted: Fri Jan 02, 2009 4:22 am Post subject: |
|
|
Thank you.
I hope Smarty can work faster, just like ASP.NET.
|
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Fri Jan 02, 2009 4:52 am Post subject: |
|
|
You should compare PHP itself to ASP.NET, not Smarty. Use an op-code accelerator to maximize execution speed. |
|
Back to top |
|
|
|
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
|