Merge branch 'ds/midx-with-less-memory'
commitacbec18d8e763069f55f895d15ebb37e9162357d
authorJunio C Hamano <gitster@pobox.com>
Wed, 3 Aug 2022 20:36:06 +0000 (3 13:36 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 3 Aug 2022 20:36:06 +0000 (3 13:36 -0700)
tree6b54a1fca554d1250d574ba79333d82961345a3a
parent350dc9f0e8974b6fcbdeb3808186c5a79c3e7386
parent51d1b69a534b591aa4afdc6f64c0e7aa8d886961
Merge branch 'ds/midx-with-less-memory'

The codepath to write multi-pack index has been taught to release a
large chunk of memory that holds an array of objects in the packs,
as soon as it is done with the array, to reduce memory consumption.

* ds/midx-with-less-memory:
  write_midx_bitmap(): drop unused refs_snapshot parameter
  midx: reduce memory pressure while writing bitmaps
  midx: extract bitmap write setup
  pack-bitmap-write: use const for hashes