Re: [PATCH 14/23] midx: write object offsets

2018-06-09 Thread Duy Nguyen
On Thu, Jun 7, 2018 at 7:02 PM Derrick Stolee wrote: > +static size_t write_midx_large_offsets(struct hashfile *f, uint32_t > nr_large_offset, > + struct pack_midx_entry *objects, > uint32_t nr_objects) > +{ > + struct pack_midx_entry *list = objects;

[PATCH 14/23] midx: write object offsets

2018-06-07 Thread Derrick Stolee
The final pair of chunks for the multi-pack-index (MIDX) file stores the object offsets. We default to using 32-bit offsets as in the pack-index version 1 format, but if there exists an offset larger than 32-bits, we use a trick similar to the pack-index version 2 format by storing all offsets at