Re: Include file

From: Date: Wed, 06 Apr 2005 04:38:43 +0000
Subject: Re: Include file
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-212350@lists.php.net to get a copy of this message
On Wed, March 30, 2005 2:31 pm, Martin.C.Austin@supervalu.com 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

« previous php.general (#212350) next »