Benefits of xml.dom.minidom?
- From: John Gordon <gordon@xxxxxxxxx>
- Date: Thu, 20 Oct 2011 17:46:31 +0000 (UTC)
I recently inherited some code that uses xml.dom.minidom to build a large
XML document, and I noticed that it is quite slow and uses a ton of memory.
I converted the same code to use lxml.etree and it is much faster and
uses not nearly so much memory.
Why is minidom so hungry for resources? What is it doing with all that
memory and CPU?
John Gordon A is for Amy, who fell down the stairs
gordon@xxxxxxxxx B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"
- Re: Optimizations to Reduce Memory Consumption and Minimize Paging
... wastes a lot of memory and the other version would just crash the OS, ... It seems the optimizations he added work, ... with that call still has a reference pointing to it (the problem is ... To prevent the XML document from constantly growing without any memory ...
- Re: sp_xml_preparedocument
... I like your idea using the profiler to debug the sp_xml procedure calls. ... however the memory will not release. ... > You can run a profiler trace that traces SQL:StmtCompleted events, ... >> a leak and is not removing the xml document in proper fashion, ...
- Re: DOM and SAX parsing in Ada
... >> DTDs and entities, with namespace support), but which was written with ... There is a Read procedure to read an XML document into memory (which can ... node matching certain criteria. ...
- Re: OPENXML performance
... To slightly clarify Mingqing' statements, ... > available to the OPENXML construct over an XML document operation. ... It is one eighth of the available MAIN memory ...
- Re: xml.xmldocument.load does it load document to memory?
... > I am making a simple app that groups files together by storing them into ... an xml document. ... It gets loaded into memory COMPLETE in an in-memory tree representation, ... DOM is supposed to work in general). ...