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

Dynamically Typed:
Procedural PHP & Slower Apps
Jan 14, 2005 @ 13:25:22

New from Dynamically Typed today, there's a bit of a clarification on his previous post as far as the statement that "procedural PHP leads to slower apps".

After reading OOP and Performance, Christopher Thompson rightly called my bluff (see the comments), triggering further discussion and forcing me to think harder.

In "OOP and Performance" I wasn't trying to say anything absolute but rather describe a general hunch I've got. Although I singled out two personal examples, where the effect can, and was, written off as implementation detail, the hunch actually comes from general impressions and memories of trawling the source code of Open Source PHP apps, over the years, where they were written primarily with procedural code. And it's not to say there aren't any dog-slow OO apps out there - there most definately are.

He seems to change his tune on the matter, stating this time that procedural PHP leads to slower apps. He gives a simple example and follows it up with a few "rules" to help you make your code the speediest possible...

tagged:

Link:


Trending Topics: