xml.sax.xmlreader and expat
Fredrik Lundh
fredrik at pythonware.com
Tue Jun 27 22:58:21 EDT 2006
Gary Robinson wrote:
> We're using xml.sax.xmlreader in our app (http://www.goombah.com, which
> is written in Python).
>
> In Python 2.3.x, does that use the C-language expat under the hood?
yes.
> The reason I'm asking is because we're wondering if we can speed up the
> parsing significantly.
if you want speed, you don't really want any of the xml.sax or xml.dom
stuff. I'm a bit biased, but I'd recommend the iterparse interface to
cElementTree:
http://effbot.org/zone/celementtree.htm
http://effbot.org/zone/element-iterparse.htm
</F>
More information about the Python-list
mailing list