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

postfilter.glue_php
Goto page Previous  1, 2
 
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 -> Plugins
View previous topic :: View next topic  
Author Message
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Mon Aug 18, 2003 11:26 am    Post subject: Reply with quote

Budda wrote:
Exactly how much faster does removing these extra ?> <?php tags make Smarty?


i think the speed gain is not very much and hard to estimate.

first of all it depends largely on how many such cases you have in the specific compiled templates.

the compiled templates get a bit smaller by this but it depends on your operating-system if a little smaller file automatically loads faster. i guess this is only true if the file really gets a block smaller (the block-size depends on your operating-system and the filesystem's settings).

the parsing that is saved should also only be little because the php-parser is already quite fast.

i think the speed gain is never noticable by a human being but maybe measurable if you reload and bench the same page a few hundred or a few thousand times.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mohrt
Administrator


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

PostPosted: Mon Aug 18, 2003 2:06 pm    Post subject: Reply with quote

If I were to guess, I'd think the majority of the speedup would be from removal of the runtime context switching (in and out of PHP/HTML), followed by the file size reduction. Either one is negligible by itself, but likely measurable in a complex web page with lots of functions and variables.
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 -> Plugins All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
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