advertisement

Weblog:   The Python comunity has too many deceptive XML benchmarks
Subject:   Trying my own tool (Gnosis Utils)
Date:   2005-01-24 20:03:21
From:   David_Mertz
Response to: Trying my own tool (Gnosis Utils)

I am thinking, BTW, of wrapping cElementTree.iterparse() into another gnosis.xml.objectify parser. Currently, there's a painfully slow DOM parser, and a reasonably fast EXPAT parser in there. But the design makes it easy to plug in something else. I have vaguely wanted to create an RXPU parser too (and more recently LXML)... but if I think cElementTree is even faster, I might just do that.


I like my (more Pythonic) API better than that in ElementTree, but if I get speed, why not take advantage of /F's underlying work? Of course, there're a zillion things I want to get around to, so it's not quite a promise.

Main Topics Oldest First

Showing messages 1 through 1 of 1.

  • Trying my own tool (Gnosis Utils)
    2005-01-25 15:08:00  effbot [Reply | View]

    david, it's "different", not "more". classes fit some kind of problems really well, but not all of them. and for some problems, your current code doesn't work at all (hint: namespaces).

    and of course you should take advantage of the stuff I'm doing. it may not save you that much, since you still have to create all the objects over at the python side of things, but it's worth trying. drop me a line if you have questions.

Showing messages 1 through 1 of 1.