On Friday 13 August 2004 22:46, Krzysztof Kowalczyk wrote:
I therefore suggest a new structure:
- Preprocessor
- Wiki markup to XML
- XML to (X)HTML
Why XML for intermediate part? As I understand it, speed is important for WikiPedia code given it needs to scale to a very high usage. Servers are always overloaded.
A parser generated with yacc is extremely fast and needs very little memory. The same holds for the XML parser in PHP. Since you don't want to write the parser in PHP you have an interface problem anyway (you cannot simply exchange a PHP data structure) and this would actually be a very efficient solution.
-- Jan Hidders