News for hackers. Stuff that matters.
Re:Tracking Down a Python Memory Leak by maxerickson on Wednesday December 07, 2016 @02:59PM (#13125684)
Have you compared it to the C implementation of ElementTree?

With stanzas like

    for event, n in ElementTree.iterparse(xmlfile, events=("end",)):
        if n.tag == "blar":
            # do stuff
            n.clear()
it doesn't even take much memory to parse files of arbitrary size.

There are no comments on this comment yet.