From: Ralph Corderoy Date: Wed, 26 Apr 2017 23:14:28 +0000 (+0100) Subject: sbr/vector.c: Zero the growth with memset(3), not loop. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/c8caafcb4a39516eaec330f9ea229ea52e5fe46b?hp=c8caafcb4a39516eaec330f9ea229ea52e5fe46b sbr/vector.c: Zero the growth with memset(3), not loop. When the resize functions grow the vectors, as they always do, zero the new slots with memset(3) rather than a for loop. Particularly of note for the bit vector where it was bvector_clear()ing one bit at a time. Although a NULL pointer needn't have a representation of all-zero bits, the code was already assuming that, e.g. on the initial allocation, so we're no worse off. ---