
18 Apr
2006
18 Apr
'06
2:49 p.m.
... Libxml2 is generaly faster than expat.
Is your assessment based on experience? Just curious. I have used expat for several years and I would be really interested if libxml2 can do the job faster.
Yes, we test and run a lot of benchmarks on a lot of different XML parsers (including some not generally available). Libxml used to be a touch slower than expat but libxml2 is faster in both the SAX2 mode and when used as a pull parser. Also, there are some new interfaces in libxml2 that allow you to minimize the amount of string copying and allocation, which futher enhances its advantage. Tom