xml - Minidom on Python: memory issue -



xml - Minidom on Python: memory issue -

i'm using minidom on python parse xml file. understand it's slow process , takes substantial amount of memory. i'm using for-next loop. files happen large, i'm fine time takes parse first one. first 1 takes couple of minutes when looping , running same parse function, took 30 minutes so. must memory issue. there dump memory subsequent files don't take much longer?

example in python (excluding other things variable xmldoc 1 time it's parsed):

for filename in filelist: file = open(filename,'r') xmldoc = minidom.parse(file)

python xml minidom

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -