From: Ralph Corderoy Date: Fri, 28 Apr 2017 11:45:26 +0000 (+0100) Subject: sbr/vector.c: Only allocate bvector storage for set bits. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/4d3c5111a2a7716e957547cb80a1efe7accabf6f?hp=4d3c5111a2a7716e957547cb80a1efe7accabf6f sbr/vector.c: Only allocate bvector storage for set bits. Now that a pointer to all the bit storage doesn't escape vector.c, there's no need to allocate storage, that's initialised to 0, just to then clear a bit in it. Only extend the bits's storage for set bits. Remove the unused initial size parameter from bvector_create() as it simplifies the implementation. ---