[issue24424] xml.dom.minidom: performance issue with Node.insertBefore()

Serhiy Storchaka report at bugs.python.org
Fri Jun 17 15:08:58 EDT 2016


Serhiy Storchaka added the comment:

This slow down is not such small -- up to 25% for every insertBefore(). If most calls of insertBefore() are not with the same refChild, the benefit from the optimization of one special case can be dwarfed. Try to minimize the overhead of the optimization. If you succeed the chances of acceptance of the patch will increase.

I think that the availability of alternatives (upgrading to Python 3 or using ElementTree) plays against the acception of this optimization. Since it looks more as new feature to me, you have to convince the maintainer of 2.7 to take the patch in 2.7.

----------
nosy: +benjamin.peterson

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24424>
_______________________________________


More information about the Python-bugs-list mailing list