Re: [Python-Dev] A new dict for Xmas?

2011年12月15日 21:59:00 -0800

Mark Shannon wrote:
I have a new dict implementation which allows sharing of keys between objects of the same class.
We already have the __slots__ mechanism for memory savings.
Have you done any comparisons with that?
Seems to me that __slots__ ought to save even more memory,
since it eliminates the per-instance dict altogether rather
than just the keys half of it.
--
Greg
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to