Re: E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0
| From: | Roman Neuhauser | Date: | Thu, 04 Jan 2007 12:29:14 +0000 |
| Subject: | Re: E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0 | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-246519@lists.php.net to get a copy of this message | ||
# robert@interjinn.com / 2007-01-04 05:51:12 -0500:
> On Thu, 2007-01-04 at 10:15 +0000, Stut wrote:
> > Gregory Beaver wrote:
> > > This is a good example of how the flexibility of PHP can bite you,
> > > but is also a good example of how bad coding adds both complexity and
> > > inefficiency to the resulting software. If f() is called often,
> > > there might be a noticeable speedup if it were replaced. I once had
> > > a complex database ORM-HTML mapping app that was about 10% faster
> > > when I replaced all the "" strings with '' strings. This was on
> > > a
> > > slow machine with an early PHP, but little things like this can be
> > > very important.
> >
> > http://dev.stut.net/phpspeed/
>
> You forgot to benchmark echo, everyone (me anyways) knows echo is faster
> than print. Why you ask? Because print returns a value, echo does not :)
And printf() is faster than echo:
Using <?php echo $x; ?>
Took 1.4402 seconds
ť Reveal output
Using <?php print $x; ?>
Took 1.1628 seconds
ť Reveal output
Using <?php printf('%s', $x); ?>
Took 0.8289 seconds
ť Reveal output
--
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man. You don't KNOW.
Cause you weren't THERE. http://bash.org/?255991