[issue23103] ipaddress should be Flyweight
Antoine Pitrou
report at bugs.python.org
Fri Dec 26 22:49:38 CET 2014
Antoine Pitrou added the comment:
So, there are several aspects to this request:
- add a __slots__: this is Serhiy's patch
- add some weak interning of IP addresses: I believe it is ok to add it as an optimization, provided it doesn't otherwise change the API or the classes' behaviour
Seth: feel free to write a draft patch of interning, in order to get actual performance/memory consumption numbers. Also, perhaps open a specific issue for it, so we don't have many patches on the same issue?
----------
nosy: +pitrou
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23103>
_______________________________________
More information about the Python-bugs-list
mailing list