Wouter Bolsterlee added the comment:

as a follow-up note, i also experimented with keeping the actual value as a 
bytes object instead of an integer, but that does not lead to less memory being 
used: a 128-bit integer uses less memory than a 16 byte bytes object 
(presumably because PyBytesObject has a cached hash() field and a trailing null 
byte).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30977>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to