6 Jun 22:16
xml.dom.pulldom using excessive memory
From: Byron <bvftmp1 <at> base2.cc>
Subject: xml.dom.pulldom using excessive memory
Newsgroups: gmane.comp.lang.jython.devel
Date: 2008-06-06 20:19:59 GMT
Subject: xml.dom.pulldom using excessive memory
Newsgroups: gmane.comp.lang.jython.devel
Date: 2008-06-06 20:19:59 GMT
The following jython script fails on trunk with a OutOfMemoryError
exception, but works with jython 2.2.1. If trunk is run with -Xmx128M
then it works.. but this seems excessive for the given script.
import xml.dom.pulldom
xmlf = file("tmp.xml", "w")
xmlf.write("<foo>\n")
for i in range(1, 8000):
xmlf.write(" <data>%s</data>\n" % i)
xmlf.write("</foo>\n")
xmlf.close()
xmldoc = xml.dom.pulldom.parse("tmp.xml")
event, dbnode = xmldoc.getEvent()
import xml.dom.pulldom
xmlf = file("tmp.xml", "w")
xmlf.write("<foo>\n")
for i in range(1, 8000):
xmlf.write(" <data>%s</data>\n" % i)
xmlf.write("</foo>\n")
xmlf.close()
xmldoc = xml.dom.pulldom.parse("tmp.xml")
event, dbnode = xmldoc.getEvent()
------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php
_______________________________________________ Jython-dev mailing list Jython-dev <at> lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jython-dev
RSS Feed