New submission from Serhiy Storchaka: According to lxml benchmark [1], deepcopying a tree in ElementTree is about 20 times slower than in lxml. Proposed patch optimizes deepcopying C implementation of ElementTree about 20 times. It is now 5% to 3 times faster than in lxml.
[1] http://lxml.de/performance.html ---------- components: Extension Modules files: etree_deepcopy.patch keywords: patch messages: 256455 nosy: brett.cannon, scoder, serhiy.storchaka priority: normal severity: normal stage: patch review status: open title: Faster ElementTree deepcopying type: performance versions: Python 3.6 Added file: http://bugs.python.org/file41314/etree_deepcopy.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25869> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com