I'm working on a project that requires cloning elements such as text:list-item elements, in order to dynamically extend a list while preserving formatting. Using copy.deepcopy is slow, because it seems to copy the entire tree. Do you have any thoughts on how to efficiently clone a subtree such as this?
Hi,
I'm working on a project that requires cloning elements such as text:list-item elements, in order to dynamically extend a list while preserving formatting. Using copy.deepcopy is slow, because it seems to copy the entire tree. Do you have any thoughts on how to efficiently clone a subtree such as this?
Thank you!