Message188724
We came across this curious phenomenon, when our progam was leaking dynamically created classes. It started spending CPU, to be fixed when gc was increased. The attached .py file demonstrates the problem.
The problem is due to how child classes are added to the parent class, in this case, "object". Obsolete code tries to look for a NULL pointer in the entire list of children.
In addition, removing child classes is unnecessarily slow.
the attached patch fixes these performance issues. |
|
Date |
User |
Action |
Args |
2013-05-08 15:58:46 | kristjan.jonsson | set | recipients:
+ kristjan.jonsson |
2013-05-08 15:58:46 | kristjan.jonsson | set | messageid: <1368028726.5.0.833825784859.issue17936@psf.upfronthosting.co.za> |
2013-05-08 15:58:46 | kristjan.jonsson | link | issue17936 messages |
2013-05-08 15:58:46 | kristjan.jonsson | create | |
|