Reply to Performance question

Your name:

Reply:


Posted by Anders Norrbring on 12/05/05 09:27

I've been spending some time to find performance pros and cons, but so
far haven't had any real luck.

Can someone on this list say which is better than the other, and also
why, when it comes to these kinds of syntax:

1.
php code
?>
<html statements><?= $variable ?></end tag>
<tag><?= $var2 ?></end tag>
<?
more php code

2.
php code
echo "<tag>$variable</end tag>";
echo "<tag>$var2</end tag>";
more php code

In both cases, some processing is done, not that 'echo' uses a lot of
cpu time, but still...
On the other hand, there are more jumps in and out for the interpreter
in the first example...

I'd love some thoughts on this.
--

Anders Norrbring
Norrbring Consulting

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация