Re: [PATCH v2 0/5] packfile: use oidset for bad objects
From: Derrick Stolee <hidden>
Date: 2021-09-11 23:59:45
On 9/11/21 4:31 PM, René Scharfe wrote:
Replace the custom hash array for remembering corrupt pack entries with an oidset. This shortens and simplifies the code. Changes since v1: - inline oidset_size() - inline nth_midxed_pack_entry() early - use oidset_size() to avoid a function call if no bad objects exist oidset: make oidset_size() an inline function midx: inline nth_midxed_pack_entry() packfile: convert mark_bad_packed_object() to object_id packfile: convert has_packed_and_bad() to object_id packfile: use oidset for bad objects
These were easy reads, and I understand the value of them. I initially hesitated to support the drop of nth_midxed_pack_entry(), since it was designed with things like midx bitmaps in mind (specifically, to also support lex-order-to-stable-order conversions). However, it seems that the midx bitmap series by Taylor is succeeding without needing such a translation. Thanks, -Stolee