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 ncoghlan
Recipients eric.snow, josh.r, lemburg, ncoghlan, pitrou, pmoody, r.david.murray, rhettinger, sbromberger, serhiy.storchaka
Date 2014-12-29.10:55:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1419850508.64.0.371404712972.issue23103@psf.upfronthosting.co.za>
In-reply-to
Content
I've retitled this issue to be specifically about reducing the memory consumption of the existing types in the IP Address module, as that's a change that isn't easily implemented externally, and shouldn't have any negative side effects under intended usage (although we should probably consider keeping __weakref__ support when adding the __slots__ definitions - I'm OK with taking away arbitrary attribute support, but far more wary of removing the existing weakref support)

By contrast, interning for even more aggressive memory usage reduction is something that can be implemented relatively easily externally, and is also something that is really hard to tune in the general case. "Small integers" and "strings that look like identifiers" are a win because of the way the language itself works, but there's no similar general purpose heuristic that applies for caching of IP addresses.
History
Date User Action Args
2014-12-29 10:55:08ncoghlansetrecipients: + ncoghlan, lemburg, rhettinger, pitrou, pmoody, r.david.murray, eric.snow, serhiy.storchaka, josh.r, sbromberger
2014-12-29 10:55:08ncoghlansetmessageid: <1419850508.64.0.371404712972.issue23103@psf.upfronthosting.co.za>
2014-12-29 10:55:08ncoghlanlinkissue23103 messages
2014-12-29 10:55:07ncoghlancreate