eea / odfpy

API for OpenDocument in Python
GNU General Public License v2.0
311 stars 64 forks source link

Cloning Subtrees #120

Open dumbshow opened 2 years ago

dumbshow commented 2 years ago

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!