View Single Post
  #20 (permalink)  
Old 08-10-2007, 04:28 AM
vijayanand vijayanand is offline
D-Web Analyst
 
Join Date: Feb 2007
Posts: 293
vijayanand is on a distinguished road
Default Re: Site Performance - Tips & Tricks

hi pals,

1) We should use the single quotes instead of double quotes to increase the performance of the page..
Where the performance will be increased by twice when using single quotes rather than double quotes...

2) And we should use the assignment operator to display the php values instead of echo the values.

for eg,
a. <?=$display_value?>
b. <? echo $display_value; ?>
hence using the a will be quite valuable when compared the b.

the performance of the page will be the follwing :
(<?=)... : 0.2423449754715
(<?echo): 0.25177192687988
__________________

J.Vijayanand
Reply With Quote