Re: [PATCH v5 11/11] pack-objects.h: reorder members to shrink struct object_entry

2018-03-18 Thread Duy Nguyen
On Sat, Mar 17, 2018 at 8:53 PM, Ævar Arnfjörð Bjarmason wrote: > > On Sat, Mar 17 2018, Nguyễn Thái Ngọc Duy jotted: > >> Previous patches leave lots of holes and padding in this struct. This >> patch reorders the members and shrinks the struct down to 80 bytes >> (from 136

Re: [PATCH v5 11/11] pack-objects.h: reorder members to shrink struct object_entry

2018-03-17 Thread Ævar Arnfjörð Bjarmason
On Sat, Mar 17 2018, Nguyễn Thái Ngọc Duy jotted: > Previous patches leave lots of holes and padding in this struct. This > patch reorders the members and shrinks the struct down to 80 bytes > (from 136 bytes, before any field shrinking is done) with 16 bits to > spare (and a couple more in

[PATCH v5 11/11] pack-objects.h: reorder members to shrink struct object_entry

2018-03-17 Thread Nguyễn Thái Ngọc Duy
Previous patches leave lots of holes and padding in this struct. This patch reorders the members and shrinks the struct down to 80 bytes (from 136 bytes, before any field shrinking is done) with 16 bits to spare (and a couple more in in_pack_header_size when we really run out of bits).