Re: parsing a huge xml document
mirod <[email protected]>
| Newsgroups | gmane.comp.lang.perl.xml |
|---|---|
| Message-ID | <[email protected]> |
Vaclav Barta wrote: > On Thursday 10 September 2009 19:23:40 Liam Quin wrote: >> Others have mentioned that SAX is slow (although I think one of >> SAX readers is based on libxml and shouldbe quite fast), and > But isn't the libxml-based SAX just an interface to the document in memory? > That is, completely negating the one advantage SAX has over DOM? No, that was the case a long time ago, but isn't any more. Speedwise, there is no reason for SAX to be faster than DOM, and in fact it is slower, more or less because more happens in Perl land as opposed to C (libxml2) land. -- mirod _______________________________________________ Perl-XML mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs