Serhiy Storchaka added the comment: There are different tricks that allow to minimize an overhead. Here is tuned patch.
But I still not sure that this special case is worth to be optimized. ---------- Added file: http://bugs.python.org/file43445/minidom.insertBefore2.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24424> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com