|
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 |
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Mon Aug 18, 2003 11:26 am Post subject: |
|
|
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 |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Mon Aug 18, 2003 2:06 pm Post subject: |
|
|
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 |
|
|
|
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
|