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 kristjan.jonsson
Recipients kristjan.jonsson
Date 2013-05-08.15:58:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1368028726.5.0.833825784859.issue17936@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-05-08 15:58:46kristjan.jonssonsetrecipients: + kristjan.jonsson
2013-05-08 15:58:46kristjan.jonssonsetmessageid: <1368028726.5.0.833825784859.issue17936@psf.upfronthosting.co.za>
2013-05-08 15:58:46kristjan.jonssonlinkissue17936 messages
2013-05-08 15:58:46kristjan.jonssoncreate