[libxml-devel] Better performance from find or parsing?
Sean Chittenden
sean at chittenden.org
Tue Feb 10 11:49:48 EST 2009
> Say I have about 20 tags to find in a document and manipulate. What is
> going to be the faster approach, reading through the entire tree and
> handling the matching tags as it comes across them, or doing a #find
> on the document for each tag.
Neither. Using a SAX interface is the fastest, actually. Using both
of the methods you suggest require creating a DOM tree. -sc
--
Sean Chittenden
sean at chittenden.org
More information about the libxml-devel
mailing list