]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Replace the iter/itertext methods of Element in _elementtree with true C implementati...
authorEli Bendersky <eliben@gmail.com>
Fri, 15 Jun 2012 04:42:50 +0000 (07:42 +0300)
committerEli Bendersky <eliben@gmail.com>
Fri, 15 Jun 2012 04:42:50 +0000 (07:42 +0300)
commit64d11e60f23f6b1435704adb87ebf818e5a4c0c1
treeece3c4337e34bdb0408016b1eb38428343b75873
parentfedb04a37aff9f7a2cfe746f7fc4683e74e38bf0
Replace the iter/itertext methods of Element in _elementtree with true C implementations, instead of the bootstrapped Python code. In addition to being cleaner (removing the last remains of the bootstrapping code in _elementtree), this gives a 10x performance boost for iter() on large documents.
Also reorganized the tests a bit to be more robust.
Lib/test/test_xml_etree.py
Lib/test/test_xml_etree_c.py
Lib/xml/etree/ElementTree.py
Modules/_elementtree.c