News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Tobias Schlitt's Blog:
Funny speed considerations
October 01, 2007 @ 12:04:00

Tobias Schlitt offers a helpful hint or two for "speeding up" your application in the form of comparison operators.

The fact that type save comparisons (ala ===) are faster in PHP than the normal comparison operator (ala ==). The reason for this is simply, that PHPs loosly-typed-ness-auto-cast-code is not even touched with ===

He also points out an interesting condition that saves a bit of computing time - comparing the isset() of a variable to true over the count() to zero. Some of his benchmarking (code) shows this in action.

0 comments voice your opinion now!
speed comparison operator looselytyped speed comparison operator looselytyped


blog comments powered by Disqus

Similar Posts

Tobias Schlitt's Blog: Funny speed considerations

Lorna Mitchell's Blog: Proof that PHP 5.4 is Twice as Fast as PHP 5.3

Matt Curry's Blog: 8 Ways to Speed Up CakePHP Apps

NETTUTS.com: 3 Ways to Speed up Your Site with PHP

Ilia Alshanetsky's Blog: PHP 5.2.0 RC1 Released!


Community Events





Don't see your event here?
Let us know!


symfony voicesoftheelephpant community release application tool interview version library laravel update opinion introduction security language package framework podcast series composer

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework