Message268722
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. |
|
Date |
User |
Action |
Args |
2016-06-17 12:45:53 | Robert Haschke | set | recipients:
+ Robert Haschke, berker.peksag, serhiy.storchaka, guihome |
2016-06-17 12:45:53 | Robert Haschke | set | messageid: <1466167553.4.0.569343533065.issue24424@psf.upfronthosting.co.za> |
2016-06-17 12:45:53 | Robert Haschke | link | issue24424 messages |
2016-06-17 12:45:52 | Robert Haschke | create | |
|