xml processing speed test

K.S.Sreeram sreeram at tachyontech.net
Wed Jun 7 14:17:52 EDT 2006


Fredrik Lundh wrote:
> your celementtree example isn't exactly optimal, though...  are you sure 
> you understand how iterparse works?

From what i understand, the iterparse interface constructs the xml tree,
but gives you hooks into the tree construction process itself, so that
the programmer can control how much state he wants to retain and how
much state he can discard.

I wanted the test program to maintain as little state as possible, so
i'm discarding all state at the earliest.

I also read the note regarding clearing the root node on your website,
but if add code to do that, the test program actually became *slower*!!

So can you tell me how i can use iterparse more effeciently?

Regards
Sreeram

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-list/attachments/20060607/d829c010/attachment.sig>


More information about the Python-list mailing list