Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Can Smarty compile PHP into binary code?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
akyahoo
Smarty Rookie


Joined: 08 Dec 2008
Posts: 9

PostPosted: Mon Dec 29, 2008 6:08 am    Post subject: Can Smarty compile PHP into binary code? Reply with quote

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
View user's profile Send private message
Celeb
Administrator


Joined: 17 Apr 2007
Posts: 1025
Location: Vienna

PostPosted: Mon Dec 29, 2008 8:20 am    Post subject: Reply with quote

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
View user's profile Send private message
akyahoo
Smarty Rookie


Joined: 08 Dec 2008
Posts: 9

PostPosted: Fri Jan 02, 2009 4:22 am    Post subject: Reply with quote

Thank you.

I hope Smarty can work faster, just like ASP.NET.


Rolling Eyes Rolling Eyes Rolling Eyes Rolling Eyes
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Fri Jan 02, 2009 4:52 am    Post subject: Reply with quote

You should compare PHP itself to ASP.NET, not Smarty. Use an op-code accelerator to maximize execution speed.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    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