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

Alan Gauld alan.gauld at btinternet.com
Tue Dec 21 10:49:42 CET 2010

"David Hutto" <smokefloat at gmail.com> wrote

> > Note that it's not unlikely that this is actually *slower* than 
> > using a real
> > XML parser:
> Or a 'real' language like C or C++ maybe to increase, or in Python's
> case, bypass, the interpreter?

Most of the Python xml parsers are written in C - many use the
industry standard expat parser - so converting to C would bring
minimal speed advantage and a lot of extra work.

Alan G. 

More information about the Tutor mailing list