[XML-SIG] Re: cElementTree 0.8 (january 11, 2005)

Fredrik Lundh fredrik at pythonware.com
Wed Jan 12 20:12:57 CET 2005

several people have asked for libxml2 figures, since libxml2 is known as the
fastest parser under the sun (with the possible exception of RXP, which is
known as quite possibly the fastest parser anywhere).

here's an updated table:

    library                     memory  time
    minidom (python 2.1)        80000k  6.5s
    minidom (python 2.4)        53000k  1.4s
    ElementTree 1.3             14500k  1.1s
    pyRXPU                      11500k  0.22s
    libxml2                     16000k  0.098s
    cElementTree 0.8             5700k  0.058s
    readlines (read as text)     5050k  0.032s

(gnosis.objectify and pyrxp both failed to parse the source file, and pyrxpu seems
to ignore namespaces -- setting the namespace flag only makes it throw away the
xmlns attributes, which isn't exactly helpful...)

(btw, soon-to-be-released cET 0.9 is faster than 0.8.  more about that one later).


More information about the XML-SIG mailing list