[Tutor] Trying to parse a HUGE(1gb) xml file in python

Stefan Behnel stefan_ml at behnel.de
Tue Dec 21 09:57:03 CET 2010


David Hutto, 21.12.2010 09:49:
>> Steven D'Aprano, 20.12.2010 22:19:
>>>
>>> ashish makani wrote:
>>>
>>>> Goal : I am trying to parse a ginormous ( ~ 1gb) xml file.
>>>
>>> I sympathize with you. I wonder who thought that building a 1GB XML file
>>> was a good thing.
>
> http://gnosis.cx/publish/programming/xml_matters_29.html

Fredrik Lundh's cElementTree page has a benchmark for that, too. It's 
actually slower than cElementTree for the case he tested (which was 
basically "parsing" :)

http://effbot.org/zone/celementtree.htm#benchmarks

Stefan



More information about the Tutor mailing list