News Feed
Jobs Feed
Sections

Recent Jobs

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



Similar Posts

Greg Beaver's Blog: phar gets a major speed boost with version 1.2.1

Tobias Schlitt's Blog: Funny speed considerations

Brian Moon's Blog: PDO Turbo Button

Sebastian Bergmann's Blog: Xdebug Performance Boost

HowTo Forge: PHP Programming Basics


Community Events







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


job database PHP5 book mysql framework security package cakephp ajax releases release code PEAR conference developer application zend example zendframework

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