Improve Parser::strip() performance by delaying update of the strip state until the...
authorTim Starling <tstarling@users.mediawiki.org>
Thu, 4 Jan 2007 21:56:37 +0000 (21:56 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Thu, 4 Jan 2007 21:56:37 +0000 (21:56 +0000)
commit38eafdce8a32e1426bda30c55fc85ed21731292b
tree5542311cd756593522d52cbdb6fb1efe27558ecf
parent14cab769b9bb101a1fc8d6cefa0176397c5c9476
Improve Parser::strip() performance by delaying update of the strip state until the end of the parse. This improves performance in two ways: firstly by minimising the size of the state array in the case of large numbers of tags, and secondly by avoiding unnecessary invalidation of the FSS object, when FSS is enabled. The same function is preserved, because a placeholder from one recursion level should never find its way into the output of the same recursion level.
includes/Parser.php