(Oct-11-2016, 07:39 AM)sandeepvl Wrote: Hi all,
Is it efficient to pass an object returned by lxml.etree.parse("a.xml") as argument to other functions? Is the object returned a C pointer-like mechanism referring to the in-memory tree representation of XML? Or is it something else? Will it cause any performance issues down the line? I expect the size of the tree when taken in-memory could be around 15 MB.
I am planning to write multiple functions to process each child node and its sub-child nodes. To each function. I will be passing the object corresponding to child node.
Thanks
Sandeep
Definitely the most complete answer you'll get on the subject:
Unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.
Your one-stop place for all your GIMP needs: gimp-forum.net
Your one-stop place for all your GIMP needs: gimp-forum.net