kutsurak / python-bitstring

Automatically exported from code.google.com/p/python-bitstring
0 stars 0 forks source link

Reduce base-line memory consumption #95

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Although large bitstrings are stored efficiently smaller ones aren't.

The overhead, due to things like __dict__ members etc. is not far off 400 bytes 
per instance, that is

a = Bits(True)

will take almost 400 bytes of memory(!)

Investigate reducing this. First thing to look at would be __slots__. Then 
maybe interning.

Original issue reported on code.google.com by dr.scott...@gmail.com on 21 Jun 2010 at 6:15

GoogleCodeExporter commented 9 years ago
__slots__ implemented in rev 756.

Original comment by dr.scott...@gmail.com on 21 Jul 2010 at 6:18