could be `clear`ing instead of reallocating.