Author: theevilipaddress
Description:
The PHP function strtr is like 4 times faster than str_replace and would be pretty useful to use in MediaWiki in many places.
In the source code, I've noticed many replacements of underscores to spaces and vice versa, often in the form str_replace("_", " ", $foo), whereas strtr($foo, "_", " ") is much faster.
Version: unspecified
Severity: enhancement
URL: http://php.net/manual/en/function.strtr.php