Re: [PATCH v2 08/21] read_packed_refs(): read references with minimal copying

2017-09-21 Thread Michael Haggerty
On 09/20/2017 08:27 PM, Jeff King wrote: > On Tue, Sep 19, 2017 at 08:22:16AM +0200, Michael Haggerty wrote: > >> Instead of copying data from the `packed-refs` file one line at time >> and then processing it, process the data in place as much as possible. >> >> Also, instead of processing one

Re: [PATCH v2 08/21] read_packed_refs(): read references with minimal copying

2017-09-20 Thread Jeff King
On Tue, Sep 19, 2017 at 08:22:16AM +0200, Michael Haggerty wrote: > Instead of copying data from the `packed-refs` file one line at time > and then processing it, process the data in place as much as possible. > > Also, instead of processing one line per iteration of the main loop, > process a

[PATCH v2 08/21] read_packed_refs(): read references with minimal copying

2017-09-19 Thread Michael Haggerty
Instead of copying data from the `packed-refs` file one line at time and then processing it, process the data in place as much as possible. Also, instead of processing one line per iteration of the main loop, process a reference line plus its corresponding peeled line (if present) together. Note