-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Tim Starling wrote:
The main reason I'm doing this is because I think
$foo.' '.$bar looks
ugly compared to "$foo $bar", and it also takes up more screen space. I
doubt the performance gain would be significant either way,
concatenation takes only 19us. I just don't like seeing the MediaWiki
codebase uglied up for specious reasons.
While I agree that if interpolation looks nicer then concatenation, you
should definitely use it, I don't think the test results mean very much.
String interpolation used to be quite slow, but the PHP team managed to
speed it up quite a bit from 4.2 to 4.3 to 5 (Schlossnagle 2004).
I think it's highly dependent on server configuration: you should run
the test on a production Wikimedia server and see how it fares there.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org
iD8DBQFEy3oDqTO+fYacSNoRAlErAJ4tVCnw0h3dt4A8oGtMuylfR4a3ogCfcF1h
9uo7pJrCq8AnkvBbZnYjhxs=
=QNGh
-----END PGP SIGNATURE-----