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 <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

Reply via email to