Re: Speeding question, " vs '
- From: Joe Scylla <joe.scylla@xxxxxxxxx>
- Date: Wed, 30 Apr 2008 14:46:45 +0200
jodleren wrote:
Hi!
It just crossed my mind, that I usually do it like this:
$whatver=$_POST["returned_value"];
instead of
$whatver=$_POST['returned_value'];
The latter should be faster, as within ' nothing is replaced as in ".
I now wornder, what difference this makes in speed?
It should make some, but not really.... then again, with 10000000
users, it might.
What do you do?
The difference is too small to care about - even with 10M Users.
I can't say whats faster because the difference is so small that if i iterate both methods 10M times the result get corrupted by external factors like if there are other tasks that "steal" cpu time.
From the logical point of view single quotes should be faster because single quotes don't support varibale substitution.
Personally i use double quotes all the time.
Joe
.
- References:
- Speeding question, " vs '
- From: jodleren
- Speeding question, " vs '
- Prev by Date: Re: Speeding question, " vs '
- Next by Date: iframe shows in Mozilla, but not in IE
- Previous by thread: Re: Speeding question, " vs '
- Next by thread: Re: Speeding question, " vs '
- Index(es):
Relevant Pages
|