XML parsing speed

Peter Hansen peter at engcorp.com
Thu May 22 21:29:32 EDT 2003


Jamie wrote:
> 
> Do any of you know of any tricks/techniques to speed up XML parsing in
> Python? The SAX takes 40+ seconds to parse 1.5 MB of XML data. Have any of
> you managed to get around this problem?

PyRXP?  In any case, without more information about how you're actually
doing it, I'm not sure how much help you'll get...  maybe the slow
parts are in your own code, in areas that are written poorly?  Can
you just profile the program (see the profile module) and identify
the hot spots?

-Peter




More information about the Python-list mailing list