Why is xml.dom.minidom so slow?

Martin v. Löwis martin at v.loewis.de
Fri Jan 3 03:48:48 EST 2003


"Fredrik Lundh" <fredrik at pythonware.com> writes:

> moving the tree building from Python to C++ can easily buy you 10x,
> no matter what parser you're using.

Indeed; this is what makes 4Suite's cDomlette so fast.

Of course, if you use a C++ parser (say, Xerces), and then create
wrapper objects around the tree that Xerces produces, you lose some of
the advantages by creating more objects than necessary.

Regards,
Martin





More information about the Python-list mailing list