When processing Clouds, I noticed that the memory usage
get quite large. I have therefore looked at
cElementTree as an alternative XML processor, because I
have heard good things and because it is part of
ElementTree is (allegedly) pure python, while
cElementTree uses C code under the hood. The API is the
same for both, so changing between the Python and the C
version means simply changing the include.
Attached you find a very simple test that can read an
AIDA file that contains IHistogram1D objects. (I hope
it does the processing correctly)
I have not yet made any benchmarking, as I expect the
real difference to be in large IClouds and ITuples.
In order not to introduce any bugs, I would like to
know if you have any unit tests that I could use. (Or
if you would like to perorm the unit test, if you think
this is useful)
If you think this makes sense, I would try and re-write
ITree.py to use (c)elementTree.