Subject: Re: [RFC/PATCH] rev-list: embed "struct rev_info revs" into "struct rev_list_info"

From: Paolo Bonzini <[email-masked]>
Date: Sat, 18 Apr 2009 12:56:04 +0200

Nanako Shiraishi wrote:
> Quoting Christian Couder <[email-masked]>:
> 
>> There are downsides to this patch. First it is big. And "revs" is
>> initialized once when doing "memset(&info, 0, sizeof(info))" and
>> once in "init_revisions".
> 
> I'm sorry if it is obvious, but is there any upsides?

As the patch shows, the lifetime of the revs is the same as that of info
(i.e., there are never memcpys from something into revs).

Paolo