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 serhiy.storchaka
Recipients kristjan.jonsson, larry, loewis, pitrou, serhiy.storchaka, vajrasky, vstinner
Date 2014-02-13.19:29:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1392319769.57.0.633779348779.issue20416@psf.upfronthosting.co.za>
In-reply-to
Content
> As a compromise, we could suppress the sharing for small int objects, since they are singletons, anyway.

This is implementation detail.

But we can use more efficient way to memoizating small int objects.

I also suppose than efficient C implementation of IdentityDict will significant decrease an overhead (may be 2 times). As far as this is probably a first case for which IdentityDict give significant benefit, I'll provide an implementation for 3.5.
History
Date User Action Args
2014-02-13 19:29:29serhiy.storchakasetrecipients: + serhiy.storchaka, loewis, pitrou, kristjan.jonsson, vstinner, larry, vajrasky
2014-02-13 19:29:29serhiy.storchakasetmessageid: <1392319769.57.0.633779348779.issue20416@psf.upfronthosting.co.za>
2014-02-13 19:29:29serhiy.storchakalinkissue20416 messages
2014-02-13 19:29:29serhiy.storchakacreate