* Added alternate preprocessor implementation "Preprocessor_Hash" which uses plain...
authorTim Starling <tstarling@users.mediawiki.org>
Tue, 5 Feb 2008 08:23:58 +0000 (08:23 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Tue, 5 Feb 2008 08:23:58 +0000 (08:23 +0000)
commit6fb641cdfd7b5ea5d6244b261fde53ed62279637
tree8bf545b842aacf4ba4bed8c27a9ad00eebd77992
parent4d57a24a2f5fe084626e72482f02a755a7b20d3b
* Added alternate preprocessor implementation "Preprocessor_Hash" which uses plain PHP hashtables for the underlying data structure. This removes the DOM dependence, avoids XML charset problems, and avoids the lack of memory accounting in DOM. It will hopefully serve as a better model for alternate language implementations than the DOM version. I haven't measured the preformance yet, but it should be comparable to Preprocessor_DOM. If the performance is good, this might be a better default than Preprocessor_DOM.
* Verified Preprocessor_Hash against Preprocessor_DOM with a differential fuzz test.
* Improved the utility of Parser_DiffTest by synchronising strip markers and allowing for loose object comparison.
* Abstracted PPDStack to make it usable in Preprocessor_Hash.
includes/AutoLoader.php
includes/Parser.php
includes/Parser_DiffTest.php
includes/Preprocessor_DOM.php
includes/Preprocessor_Hash.php [new file with mode: 0644]