Trying to parse a HUGE(1gb) xml file

Aahz aahz at pythoncraft.com
Thu Jan 13 21:22:08 EST 2011


In article <mailman.176.1292919399.6505.python-list at python.org>,
Stefan Behnel  <stefan_ml at behnel.de> wrote:
>
>Try
>
>     import xml.etree.cElementTree as etree
>
>instead. Note the leading "c", which hints at the C implementations of 
>ElementTree. It's much faster and much more memory friendly than the Python 
>implementation.

Thanks!  I updated our codebase this afternoon...
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"The volume of a pizza of thickness 'a' and radius 'z' is
given by pi*z*z*a"



More information about the Python-list mailing list