This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Robert Haschke
Recipients Robert Haschke, berker.peksag, guihome, serhiy.storchaka
Date 2016-06-17.12:45:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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 old new
oldtime for 5000 iterations: 18.422152
newtime for 5000 iterations: 0.129384

$ python 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.
Date User Action Args
2016-06-17 12:45:53Robert Haschkesetrecipients: + Robert Haschke, berker.peksag, serhiy.storchaka, guihome
2016-06-17 12:45:53Robert Haschkesetmessageid: <>
2016-06-17 12:45:53Robert Haschkelinkissue24424 messages
2016-06-17 12:45:52Robert Haschkecreate