ANN: cElementTree 0.9.8 (january 23, 2005)

Discussion in 'Python' started by Fredrik Lundh, Jan 23, 2005.

  1. effbot.org proudly presents release 0.9.8 of 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
    ------------------------------------------------------------
    amara 20300k 6.4s
    minidom (python 2.4) 53000k 1.4s
    ElementTree 1.2.4 14500k 1.1s
    cDomlette 20500k 0.54s
    pyRXPU 10850k 0.175s
    libxml2 16000k 0.098s
    cElementTree 0.9 4900k 0.047s
    ------------------------------------------------------------
    readlines (read as utf-8) 8850k 0.093s
    readlines (read as ascii) 5050k 0.032s
    ------------------------------------------------------------

    This release also includes a new "iterparse" mechanism, which can be
    used to process the tree as it is being built. While not quite as
    fast as a full parse, it's over 4 times faster than Python's standard
    SAX interface, and even a bit faster than sgmlop.

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

    http://effbot.org/downloads#celementtree

    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:

    http://effbot.org/downloads#elementtree

    enjoy /F

    "effbot.org -- not knowing how Python is used since 1995"
    Fredrik Lundh, Jan 23, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. MarionEll
    Replies:
    0
    Views:
    430
    MarionEll
    Jan 4, 2005
  2. Tim Sutherland
    Replies:
    0
    Views:
    113
    Tim Sutherland
    Jan 5, 2005
  3. Tim Sutherland

    Ruby Weekly News 3rd - 9th January 2005

    Tim Sutherland, Jan 12, 2005, in forum: Ruby
    Replies:
    0
    Views:
    120
    Tim Sutherland
    Jan 12, 2005
  4. Tim Sutherland
    Replies:
    9
    Views:
    122
    trans.
    Jan 21, 2005
  5. Tim Sutherland
    Replies:
    3
    Views:
    86
    Tim Sutherland
    Jan 23, 2005
Loading...

Share This Page