Re: E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

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

 



On Thu, January 4, 2007 6:49 am, Roman Neuhauser wrote:
> # stuttle@xxxxxxxxx / 2007-01-04 11:38:58 +0000:
>> Jochem Maas wrote:
>> > out of interest, are you logging the result of each request? your
>> > probably getting quite a lot of hits to your phpspeed page right
>> now
>> > - storing the results of everyone's requests is a nice way to grab
>> > extra/free data whilst you pick your nose ;-)
>>
>> I'm not at the moment. It's a good idea though, if I get some time
>> over
>> lunch I'll add it.
>
> What data? How are you going to remove the effect of concurrent
> requests
> for the page from the numbers? The other mail I sent showing a run
> where
> printf() came out almost twice as fast as echo clearly shows that the
> numbers carry little information.
>
> All that I could gather from several runs was that *printf() is
> *slightly* slower than echo, and that the difference isn't large
> enough
> to justify ditching *printf(). I knew this before.

I believe that there may be some constructs within printf() that could
make it slower than just echo -- and possibly in some cases with no
real difference in output.

printf("%s", $foo) should not be THAT much slower than echo $foo, so
unless you're in some kind of tight loop with a zillion of them, it
won't matter.

I'm always befuddled by people arguing about the performance of this
or that when it's a NON-ISSUE for the context in question, 99.9% of
the time.

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
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