Or are there any plans to rewrite it in C, possibly using something like libxml2?
Parser.XML is already written in C. When it was implemented there wasn't any good alternatives (as often is the case when we decide to do things our own way), but now it would make sense to replace it with a SAX-enabled parser. This was discussed on the last Pike summit and Martin Bähr was appointed coordinator for this effort.
/ Martin Nilsson (har bott i google)
Previous text:
2003-02-28 16:49: Subject: Parser.XML - The slow, the fat and the hungry :)
Hi everybody,
Is there any alternative to Parser.XML, accessible from Pike? Modules etc? Or are there any plans to rewrite it in C, possibly using something like libxml2?
Perhaps someone may ask - what is wrong with Parser.XML?.. Well, it takes approximaly 20M RAM and 6 seconds to parse (only) 1M XML file (it contains approx. 80000 tags). This is a way too much, IMHO (libxml2 takes approx. 0.5s and only 4M RAM for same file - while this is not perfect too but more acceptable).
Any ideas? Suggestions? Comments? Flames? :)
Regards, /Al
/ Brevbäraren