|
Posted by Xfedex on 03/31/05 00:27
On Wed, 30 Mar 2005 15:14:27 -0600, Jay Blanchard
<jay.blanchard@niicommunications.com> wrote:
> [snip]
> > Why is it faster? And why should you avoid using double quotes?
> >
>
> ..."Scripts using single quotes run slightly faster because the PHP
> parser can include the string directly. Double quoted strings are
> slower because they need to be parsed."...
>
> Quoted from:
> http://www.zend.com/zend/tut/using-strings.php?article=using-strings&kin
> d=t&id=1399&open=1&anc=0&view=1
> [/snip]
>
> I try to use both types of quotes in the proper circumstance. Having
> said that, I came to computing in the age where we worried over CPU
> cycles, but I don't see how in this day and age the difference between
> the two would even matter. Even on a high load site the difference
> between the two would be negligible.
>
Well....i have a 30k script, with double i get 8 or 9 seconds, with
sigle i get 0.05 or 0.08 seconds. The script basically made a lot of
querys, its part of a user manager module of a system im writing.
Remember, the hole world is not US or EU....i live in argentina and my
web server is a PIII 550Mhz 128mb and if you count that almost the
half of the people got a 56k dialup connection....I think that in some
cases it does make difference.
sorry my english....too taired to worry
meatbread.
Navigation:
[Reply to this message]
|