Why is xml.dom.minidom so slow?

Bjorn Pettersen BPettersen at NAREX.com
Thu Jan 2 17:40:15 EST 2003


> From: Fredrik Lundh [mailto:fredrik at pythonware.com] 
> 
[...]
> 
> as a general rule, XML toolkits that try to implement the DOM 
> specification in pure Python are incredibly slow and bloated.
> 
> on random XML data, minidom can easily gobble up a kilobyte 
> or two for each element.  in one of my benchmarks, it used 
> about 50 bytes of object memory for each input character:

[lots of good references...]

Thanks Fredrik! I'll look into the various options and post any
interesting findings :-)

-- bjorn





More information about the Python-list mailing list