Re: [PATCH 09/12] receive-pack: use oidset to de-duplicate .have lines

2017-01-25 Thread Jeff King
On Wed, Jan 25, 2017 at 11:32:05AM -0800, Junio C Hamano wrote: > Jeff King writes: > > > If you have an alternate object store with a very large > > number of refs, the peak memory usage of the sha1_array can > > grow high, even if most of them are duplicates that end up > > not

Re: [PATCH 09/12] receive-pack: use oidset to de-duplicate .have lines

2017-01-25 Thread Junio C Hamano
Jeff King writes: > If you have an alternate object store with a very large > number of refs, the peak memory usage of the sha1_array can > grow high, even if most of them are duplicates that end up > not being printed at all. > ... > Signed-off-by: Jeff King > ---

[PATCH 09/12] receive-pack: use oidset to de-duplicate .have lines

2017-01-23 Thread Jeff King
If you have an alternate object store with a very large number of refs, the peak memory usage of the sha1_array can grow high, even if most of them are duplicates that end up not being printed at all. The similar for_each_alternate_ref() code-paths in fetch-pack solve this by using flags in