News for hackers. Stuff that matters.
Re:Let's make the web faster: PHP performance tips by Google by sfrench on Friday June 03, 2011 @01:23AM (#2615256)
This article feels very hastily thrown together.

No mention of APC and they didn't even bothering to discuss profilers beyond a link (which doesn't even return xhprof on the first page!)

The getter/setter thing is the perfect definition of a premature optimization. Making that optimization will result in an infinitesimally small gain compared to what could be had optimizing bad SQL and caching deficiencies.

Re:Let's make the web faster: PHP performance tips by Google by eropple on Friday June 03, 2011 @02:41AM (#2615398)
Agreed. Said other bits in another comment, but:

-mysql_query()? BAD GOOGLE WEBMASTER, NO COOKIE FOR YOU. Seriously - there is no good reason not to use PDO, or at least MDB2. (Doctrine is better, but it's just a superset of PDO.)

-References are a modern PHP programmer's (quiet you, stop laughing!) best friend. "Don't use shortened variables because you'll copy data! Just reuse the $_POST['barf']!" Never mind that $foo = &$_POST['barf'] achieves both goals...

Re:Let's make the web faster: PHP performance tips by Google by smalyshev on Friday June 03, 2011 @04:39AM (#2615590)
$foo = $_POST['barf'] does not copy data.
Re:Let's make the web faster: PHP performance tips by Google by josephcooney on Friday June 03, 2011 @01:42AM (#2615296)
Agreed. Hardly any of it is specific to PHP ("use the latest version", No SQL in a loop, use caching, use a profiler) and the stuff that is seems of marginal benefit.
Re:Let's make the web faster: PHP performance tips by Google by johnx123 on Friday June 03, 2011 @02:29AM (#2615378)
They forget that there are tools to create quick getters and setters