Re: Include file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, March 30, 2005 2:31 pm, Martin.C.Austin@xxxxxxxxxxxxx said:
>> ..."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."...

This is PATENTLY FALSE, at least in part.

PHP *must* parse single-quoted strings to find:

\'
\\

because those can be embedded in single-quoted strings to indicate
apostrophe and backslash.

Double-quotes merely increases the number of character-combinations to be
checked, not the algorithm to check for them.

[Okay, double-quotes *might* require a two-character look-ahead buffer
instead of one...   But I doubt it.]

Show us your query benchmark -- Every benchmark with source / methodology
posted is showing the above statement to be WRONG.

YOUR benchmark is presented without source, without methodology.

If you don't provide those, it's not a benchmark, it's VooDoo. :-)

Nobody will (or should) believe it.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux