Do final link replacement with preg_replace_callback instead of str_replace on giant...
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 16 Aug 2004 23:57:25 +0000 (23:57 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 16 Aug 2004 23:57:25 +0000 (23:57 +0000)
commitda501f63e1a857e5e375d4390af521778ecaa4d6
tree2fdadff872b0ec927f02c624e80e9f8a703409b5
parentb46fce110b93b8644eecb7b6061c2edef4096781
Do final link replacement with preg_replace_callback instead of str_replace on giant arrays.

Speeds up this part on a Village Pump copy by a factor of 20 over the
previous explode() hack and by a factor of 200 over the original method.
includes/OutputPage.php