Is there a way in numpy to create an array of booleans that uses just 1 bit for each entry?
If you create a
ConstBitStream from a file then it will use
mmap and not load it into memory. In this case it won't be mutable so if you want to make changes it will have to be loaded in memory.
For example to create without loading into memory:
>>> a = bitstring.ConstBitArray(filename='your_file')
>>> b = bitstring.ConstBitStream(a_file_object)