Switch do_html_entity_decode() from using strtr() to preg_replace(), which is much...
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 23 Nov 2004 05:36:40 +0000 (05:36 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 23 Nov 2004 05:36:40 +0000 (05:36 +0000)
commite87c20e7a3243c359f7e189ddcc45b3f744a797b
treeec92edf185b28862b9fe65fa06696773ce54a1e7
parent58401c4fdf147a63f482ac5b8ae525ae855e45f0
Switch do_html_entity_decode() from using strtr() to preg_replace(), which is much faster on the common case (no match).
On pages with a large number of links (hundreds) this actually made up about 1/10 of the time spent in Parser::replaceInternalLinks().
includes/GlobalFunctions.php