Robert Haschke added the comment: I uploaded a simple example to illustrate the tremendous performance boost. Obviously, the example exploits the caching improvement as much as possible: The code assembles a XML document by inserting new nodes before the last one... These are the timing results: $ python minidom_example.py old new oldtime for 5000 iterations: 18.422152 newtime for 5000 iterations: 0.129384
$ python minidom_example.py old new oldtime for 10000 iterations: 68.305351 newtime for 10000 iterations: 0.142071 You see the quadratic increase of time... IMHO, this is clearly a (performance) bug and really many people in the ROS community are affected. Hence, I hope that this patch will find its way into some python versions currently used by standard Linux distributions. ---------- Added file: http://bugs.python.org/file43436/minidom_example.py _______________________________________ 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