xml.sax.xmlreader and expat

G

Gary Robinson

Hi,

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? The
reason I'm asking is because we're wondering if we can speed up the
parsing significantly.

Thanks in advance for any input anyone can give.

Gary
--

Gary Robinson
VP/Innovation
Emergent Music, LLC
(e-mail address removed)
207-942-3463
Company: http://www.goombah.com
Blog: http://www.garyrobinson.net
 
F

Fredrik Lundh

Gary said:
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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top