[PATCH v2 6/7] p5326: generate pack bitmaps before writing the MIDX bitmap
- From
Taylor Blau <me@ttaylorr.com>
- Date
- Sep 14, 2021, 22:06 UTC
- Message-ID
- <040bb40548017bae807c1d349fa078c21ac46725.1631657157.git.me@ttaylorr.com>
- In-Reply-To
- <cover.1631657157.git.me@ttaylorr.com>
To help test the performance of permuting the contents of the hash-cache when generating a MIDX bitmap, we need a bitmap which has its hash-cache populated.
And since multi-pack bitmaps don't add *new* values to the hash-cache, we have to rely on a single-pack bitmap to generate those values for us.
Therefore, generate a pack bitmap before the MIDX one in order to ensure that the MIDX bitmap has entries in its hash-cache.
Signed-off-by: Taylor Blau <me@ttaylorr.com> --- t/perf/p5326-multi-pack-bitmaps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/t/perf/p5326-multi-pack-bitmaps.sh b/t/perf/p5326-multi-pack-bitmaps.sh index a9c5499537..38557859b7 100755 --- a/t/perf/p5326-multi-pack-bitmaps.sh +++ b/t/perf/p5326-multi-pack-bitmaps.sh @@ -13,7 +13,7 @@ test_expect_success 'create tags' ' ' test_perf 'setup multi-pack index' ' - git repack -ad && + git repack -adb && git multi-pack-index write --bitmap '
-- 2.33.0.96.g73915697e6