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 pitrou
Recipients gvanrossum, methane, pitrou, scoder, serhiy.storchaka
Date 2018-01-13.17:38:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <[email protected]>
In-reply-to
Content
I think that Inada is right: there's too much impact on memory consumption and garbage collection to call this an optimization.

Serhiy suggested removing the cache.  But, once you remove the cache, you're going to iterate on all values of all parent classes' dicts to find which values are __dunder__ methods.  This risks being much more expensive for classes with tens or hundreds of namespace entries, making the optimization even less interesting.

So in the end I think I'm going to reject this issue.
History
Date User Action Args
2018-01-13 17:38:50pitrousetrecipients: + pitrou, gvanrossum, scoder, methane, serhiy.storchaka
2018-01-13 17:38:50pitrousetmessageid: <[email protected]>
2018-01-13 17:38:50pitroulinkissue32346 messages
2018-01-13 17:38:49pitroucreate