[issue17936] O(2) behaviour when adding/removing classes

2013-05-08 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Adding the code change patch -- Added file: http://bugs.python.org/file30179/subtype.patch ___ Python tracker ___ __

[issue17936] O(2) behaviour when adding/removing classes

2013-05-08 Thread Kristján Valur Jónsson
New submission from Kristján Valur Jónsson: 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 ar