Re: [PATCH 0/12] reducing resource usage of for_each_alternate_ref

2017-01-23 Thread Jeff King
On Mon, Jan 23, 2017 at 05:33:41PM -0800, Brandon Williams wrote: > On 01/23, Jeff King wrote: > > > > A brief overview of the patches: > > > > [01/12]: for_each_alternate_ref: handle failure from real_pathdup() > > [02/12]: for_each_alternate_ref: stop trimming trailing slashes > >

Re: [PATCH 0/12] reducing resource usage of for_each_alternate_ref

2017-01-23 Thread Brandon Williams
On 01/23, Jeff King wrote: > > A brief overview of the patches: > > [01/12]: for_each_alternate_ref: handle failure from real_pathdup() > [02/12]: for_each_alternate_ref: stop trimming trailing slashes > [03/12]: for_each_alternate_ref: use strbuf for path allocation > > Bugfixes and

[PATCH 0/12] reducing resource usage of for_each_alternate_ref

2017-01-23 Thread Jeff King
As I've mentioned before, I have some alternates repositories with absurd numbers of refs, most of which are duplicates of each other[1]. There are a couple of problems I've seen: 1. the way that for_each_alternate_ref() works has very high peak memory usage for this case 2. the way that