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

Fredrik Lundh fredrik at pythonware.com
Tue Jan 11 21:17:11 CET 2005

effbot.org proudly presents the cElementTree library, a fast and very
efficient implementation of the ElementTree API, for Python 2.1 and
later.  On typical documents, it's 15-20 times faster than the Python
version of ElementTree, and uses 2-5 times less memory.

Here are some benchmark figures, using a number of popular XML tool-
kits to parse a 3405k document-style XML file from disk.

    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
    cElementTree 0.8             5700k  0.058s
    readlines (read as text)     5050k  0.032s

The library is available as C source code, and as Windows installers
for all recent Python versions.  Get your copy here:


The cElementTree module uses some support functions from the standard
ElementTree library, and will not work properly without it.  If you
haven't installed it already, you can get it from:


enjoy /F 

More information about the XML-SIG mailing list