Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Script uses a lot of RAM #7
I'm using an XML pull parser which should avoid the need to slurp the whole XML file into memory, but it's not working - the script still uses over 1GB of RAM when it runs according to Activity Monitor.
I think this is because I'm still causing the full root element to be incrementally loaded into memory just in case I try and access it later.
http://effbot.org/elementtree/iterparse.htm says I should use
So I will try that recipe and see if it helps.