git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2 13/24] pack-bitmap: read multi-pack bitmaps

From
Taylor Blau <me@ttaylorr.com>
Date
Jul 21, 2021, 23:01 UTC
Message-ID
<YPinPFW50Mj8cVkP@nand.local>
In-Reply-To
<YPgF4X2PeFvBuJXm@coredump.intra.peff.net>
On Wed, Jul 21, 2021 at 07:32:49AM -0400, Jeff King wrote:
Show 10 quoted lines
> On Mon, Jun 21, 2021 at 06:25:31PM -0400, Taylor Blau wrote:
> > +	if (!is_pack_valid(packfile)) {
> > +		close(fd);
> > +		return -1;
> > +	}
> > +
>
> What's this extra is_pack_valid() doing? I wouldn't expect many changes
> at all to this non-midx code path (aside from the "did we already load a
> midx bitmap" in the earlier part of the hunk, which makes sense).

That looks like a mistake to me. I did a little digging and tried to remember if it could have ever been useful, but I think that it's just a stray change that has no value. Removed.

Show 30 quoted lines
> > -static int load_pack_bitmap(struct bitmap_index *bitmap_git)
> > +static int load_reverse_index(struct bitmap_index *bitmap_git)
> > +{
> > +	if (bitmap_is_midx(bitmap_git)) {
> > +		uint32_t i;
> > +		int ret;
> > +
> > +		ret = load_midx_revindex(bitmap_git->midx);
> > +		if (ret)
> > +			return ret;
> > +
> > +		for (i = 0; i < bitmap_git->midx->num_packs; i++) {
> > +			if (prepare_midx_pack(the_repository, bitmap_git->midx, i))
> > +				die(_("load_reverse_index: could not open pack"));
> > +			ret = load_pack_revindex(bitmap_git->midx->packs[i]);
> > +			if (ret)
> > +				return ret;
> > +		}
> > +		return 0;
> > +	}
> > +	return load_pack_revindex(bitmap_git->pack);
> > +}
>
> OK, this new function is used in load_bitmap(), which is used for both
> pack and midx bitmaps. So if we have a midx bitmap, we'll
> unconditionally load the revindex here. But:
>
>   - why do we then load individual pack revindexes? I can believe it may
>     be necessary to meet the assumptions of some other part of the code,
>     but it would be nice to have a comment giving us some clue.

Good suggestion. We will need to reference the reverse index belonging to individual packs in a few locations in pack-objects (for e.g., write_reuse_object() calls offset_to_pack_pos(), and pack_pos_to_offset(), both with arbitrary packs, not just the preferred one).

I left the comment vague; something along the lines of "lots of routines in pack-objects will need these structures to be ready to use".

I think there's room for improvement there, since for e.g., `git rev-list --count --objects --use-bitmap-index` doesn't need to load the reverse indexes. But that's already the case with classic bitmaps, too, which eagerly call load_pack_revindex().

>   - in open_midx_bitmap_1(), we also unconditionally load the midx
>     reverse index. I think that will always happen before us here (we
>     cannot load_bitmap() a bitmap that has not been opened). So is this
>     load_midx_revindex() call always a noop?

Great catch. I removed the call to load_midx_revindex(), and replaced it with a comment explaining why we don't need to call it (because we already did).

Show 15 quoted lines
> >  static int bitmap_position(struct bitmap_index *bitmap_git,
> >  			   const struct object_id *oid)
> >  {
> > -	int pos = bitmap_position_packfile(bitmap_git, oid);
> > +	int pos;
> > +	if (bitmap_is_midx(bitmap_git))
> > +		pos = bitmap_position_midx(bitmap_git, oid);
> > +	else
> > +		pos = bitmap_position_packfile(bitmap_git, oid);
> >  	return (pos >= 0) ? pos : bitmap_position_extended(bitmap_git, oid);
> >  }
>
> Makes sense. Not new in your patch, but this "int" return is fudging the
> same 32-bit space we were talking about elsewhere (i.e., "pos" really
> could be 2^32, or even more due to extended objects).

:-). It bothers me to no end, too, because of all of the recent effort to improve the reverse-index APIs to avoid exactly this issue. But I tend to agree that the concern is more theoretical than anything, because we're only using the MSB, so the remaining 2^31 possible objects still seems pretty generous.

> In practice I think even 2^31 objects is pretty out-of-reach, but it may
> be worth changing the return type (and the callers), or even just
> catching the overflow with an assertion.

Possibly, but keep in mind that the former is basically the same refactor as we did with the "tell me whether this object was found via this extra pointer". But bitmap_position() has a lot more callers than that, so the plumbing required would be a little more prevalent.

So I'd be content to just punt on it for now, if you'd be OK with it.
Show 22 quoted lines
> >  	if (pos < bitmap_num_objects(bitmap_git)) {
> > -		off_t ofs = pack_pos_to_offset(pack, pos);
> > +		struct packed_git *pack;
> > +		off_t ofs;
> > +
> > +		if (bitmap_is_midx(bitmap_git)) {
> > +			uint32_t midx_pos = pack_pos_to_midx(bitmap_git->midx, pos);
> > +			uint32_t pack_id = nth_midxed_pack_int_id(bitmap_git->midx, midx_pos);
> > +
> > +			pack = bitmap_git->midx->packs[pack_id];
> > +			ofs = nth_midxed_offset(bitmap_git->midx, midx_pos);
> > +		} else {
> > +			pack = bitmap_git->pack;
> > +			ofs = pack_pos_to_offset(pack, pos);
> > +		}
> > +
>
> All of the hunks like this make perfect sense. The big problem would be
> if we _missed_ a place that needed conversion to handle midx. But the
> nice thing is that it would segfault quickly in such an instance. So
> there I'm mostly relying on test coverage, plus our experience running
> with this code at scale.

Yeah; I'm definitely happy to rely on our experience running this and related patches at GitHub for several months to give us confidence that we didn't miss anything here.

Show 21 quoted lines
> >  static void try_partial_reuse(struct bitmap_index *bitmap_git,
> > +			      struct packed_git *pack,
> >  			      size_t pos,
> >  			      struct bitmap *reuse,
> >  			      struct pack_window **w_curs)
> >  {
> > -	off_t offset, header;
> > +	off_t offset, delta_obj_offset;
>
> I'm OK with all of this in one big patch. But I suspect you _could_
> just put:
>
>   if (bitmap_git->midx)
> 	return; /* partial reuse not implemented for midx yet */
>
> to start with, and then actually implement it later. I call out this
> code in particular just because it's got a lot of subtleties (the
> "reuse" bits are much more intimate with the assumptions of packs and
> bitmaps than most other code).
>
> I'm not sure if it's worth the trouble at this point or not.

Yeah, I'd definitely err on the side of not splitting this up now, especially since you've already gone through the whole patch and reviewed it. (Of course, if your response was "this patch is way too big, please split it up so I can more easily review it", that would be a different story).

But I appreciate the advice, since I have felt that a lot of these format-level changes require a 3-patch arc where:

  - The first patch describes the new format in Documentation/technical.
  - The second patch implements support for reading files that are
    written in the new format.
  - And finally, the third patch implements support for writing such
    files.

...and it's usually the second of those three patches that is the most complicated one by far. So this is a good way to split that patch up into many pieces.

Of course, that only works if you delay adding tests until after support is added for all parts of the new format, but that's more-or-less what did here.

Show 16 quoted lines
> > +static uint32_t midx_preferred_pack(struct bitmap_index *bitmap_git)
> > +{
> > +	struct multi_pack_index *m = bitmap_git->midx;
> > +	if (!m)
> > +		BUG("midx_preferred_pack: requires non-empty MIDX");
> > +	return nth_midxed_pack_int_id(m, pack_pos_to_midx(bitmap_git->midx, 0));
> > +}
>
> This part is really subtle. We infer the preferred pack by looking at
> the pack of the 0th bit position. In general that works, since that's
> part of the definition of the preferred pack.
>
> Could this ever be fooled if we had a preferred pack with 0 objects in
> it? I don't know why we would have such a thing, but just trying to
> think of cases where our assumptions might not hold (and what bad things
> could happen).

An empty preferred pack would cause a problem, yes. The solution is two-fold (and incorporated into the reroll that I plan on sending shortly):

  - When the user specifies --preferred-pack, the MIDX code must make
    sure that the given pack is non-empty. That's a new patch, and
    basically adds a new conditional (to check the pack itself) and a
    test (to make sure that we catch the case we are trying to prevent).
  - When the user doesn't specify --preferred-pack (and instead asks us
    to infer one for them) we want to select not just the oldest pack,
    but the oldest *non-empty* pack. That is folded into the "midx:
    infer preferred pack when not given one" patch.

In that patch, I made a note, but I think that it's subtle enough to merit sharing here again. In the loop over all packs, the conditional for swapping out the oldest pack for the current one was something like:

    if (p->mtime < oldest->mtime)
      oldest = p;
but now we want it to be:
    if (!oldest->num_objects || p->mtime < oldest->mtime)
      oldest = p;

to reject packs that have no objects. And we want to be extra careful in the case where the only pack fed to the MIDX writer was empty. But we don't have to do anything there, since there are no objects to write anyway, so any "preferred_idx" would be fine.

Show 47 quoted lines
> > +	if (bitmap_is_midx(bitmap_git))
> > +		pack = bitmap_git->midx->packs[midx_preferred_pack(bitmap_git)];
> > +	else
> > +		pack = bitmap_git->pack;
> > +	objects_nr = pack->num_objects;
> > +
> >  	while (i < result->word_alloc && result->words[i] == (eword_t)~0)
> >  		i++;
> >
> > -	/* Don't mark objects not in the packfile */
> > +	/*
> > +	 * Don't mark objects not in the packfile or preferred pack. This bitmap
> > +	 * marks objects eligible for reuse, but the pack-reuse code only
> > +	 * understands how to reuse a single pack. Since the preferred pack is
> > +	 * guaranteed to have all bases for its deltas (in a multi-pack bitmap),
> > +	 * we use it instead of another pack. In single-pack bitmaps, the choice
> > +	 * is made for us.
> > +	 */
> >  	if (i > objects_nr / BITS_IN_EWORD)
> >  		i = objects_nr / BITS_IN_EWORD;
>
> OK, so this clamps our "quick" contiguous set of bits to the number of
> objects in the preferred pack. Makes sense. And then we hit the
> object-by-object loop below...
>
> > @@ -1213,7 +1437,15 @@ int reuse_partial_packfile_from_bitmap(struct bitmap_index *bitmap_git,
> >  				break;
> >
> >  			offset += ewah_bit_ctz64(word >> offset);
> > -			try_partial_reuse(bitmap_git, pos + offset, reuse, &w_curs);
> > +			if (bitmap_is_midx(bitmap_git)) {
> > +				/*
> > +				 * Can't reuse from a non-preferred pack (see
> > +				 * above).
> > +				 */
> > +				if (pos + offset >= objects_nr)
> > +					continue;
> > +			}
> > +			try_partial_reuse(bitmap_git, pack, pos + offset, reuse, &w_curs);
>
> ...and this likewise makes sure we never go past that first pack. Good.
>
> I think this "continue" could actually be a "break", as the loop is
> iterating over "offset" (and "pos + offset" always gets larger). In
> fact, it could break out of the outer loop as well (which is
> incrementing "pos"). It's probably a pretty small efficiency in
> practice, though.

Yeah; you're right. And we'll save up to BITS_IN_EWORD cycles of this loop. (I wonder if smart-enough compilers will realize the same optimization that you did and turn that `continue` into a `break` automatically, but that's neither here nor there).

Show 18 quoted lines
> > @@ -1511,8 +1749,13 @@ uint32_t *create_bitmap_mapping(struct bitmap_index *bitmap_git,
> >  		struct object_id oid;
> >  		struct object_entry *oe;
> >
> > -		nth_packed_object_id(&oid, bitmap_git->pack,
> > -				     pack_pos_to_index(bitmap_git->pack, i));
> > +		if (bitmap_is_midx(bitmap_git))
> > +			nth_midxed_object_oid(&oid,
> > +					      bitmap_git->midx,
> > +					      pack_pos_to_midx(bitmap_git->midx, i));
> > +		else
> > +			nth_packed_object_id(&oid, bitmap_git->pack,
> > +					     pack_pos_to_index(bitmap_git->pack, i));
> >  		oe = packlist_find(mapping, &oid);
>
> Could this be using nth_bitmap_object_oid()? I guess not, because we are
> feeding from pack_pos_to_*. I'm not sure if another helper function is
> worth it (pack_pos_to_bitmap_index() or something?).

You're right that we can't call nth_bitmap_object_oid here directly, sadly. But I think your suggestion for pack_pos_to_bitmap_index() (or similar) would only benefit this caller, since most places that dispatch conditionally to either pack_pos_to_{midx,index} want to pass the result to a different function depending on which branch they took.

Definitely possible that I missed another case that would help, but that was what I came up with after just a quick glance.

Show 49 quoted lines
> > @@ -1575,7 +1831,31 @@ static off_t get_disk_usage_for_type(struct bitmap_index *bitmap_git,
> >  				break;
> >
> >  			offset += ewah_bit_ctz64(word >> offset);
> > -			pos = base + offset;
> > +
> > +			if (bitmap_is_midx(bitmap_git)) {
> > +				uint32_t pack_pos;
> > +				uint32_t midx_pos = pack_pos_to_midx(bitmap_git->midx, base + offset);
> > +				uint32_t pack_id = nth_midxed_pack_int_id(bitmap_git->midx, midx_pos);
> > +				off_t offset = nth_midxed_offset(bitmap_git->midx, midx_pos);
> > +
> > +				pack = bitmap_git->midx->packs[pack_id];
> > +
> > +				if (offset_to_pack_pos(pack, offset, &pack_pos) < 0) {
> > +					struct object_id oid;
> > +					nth_midxed_object_oid(&oid, bitmap_git->midx, midx_pos);
> > +
> > +					die(_("could not find %s in pack #%"PRIu32" at offset %"PRIuMAX),
> > +					    oid_to_hex(&oid),
> > +					    pack_id,
> > +					    (uintmax_t)offset);
> > +				}
> > +
> > +				pos = pack_pos;
> > +			} else {
> > +				pack = bitmap_git->pack;
> > +				pos = base + offset;
> > +			}
> > +
> >  			total += pack_pos_to_offset(pack, pos + 1) -
> >  				 pack_pos_to_offset(pack, pos);
> >  		}
>
> In the midx case, we have to go from midx-bitmap-pos to midx-index-pos,
> to then get the pack/ofs combo, which then gives us a real "pos" in the
> pack. I don't think there's a faster way to do it (and this is still
> much faster than looking up objects in the pack only to check their
> revindex).
>
> But then with the result, we compare the offset of "pos" and "pos + 1".
> We need to know "pos" to find "pos + 1". But in the midx case, don't we
> already have the offset of "pos" (it is "offset" in the bitmap_is_midx()
> conditional, which is shadowing the completely unrelated "offset" in the
> outer loop).
>
> We could reuse it, saving ourselves an extra round-trip of pack_pos to
> index_pos to offset. It would just mean stuffing the "total +=" line
> into the two sides of the conditional.

Yep; agreed. And it allows us to clean up a few little other things, so I squashed it in. Thanks for the suggestion!

Show 11 quoted lines
> > +off_t bitmap_pack_offset(struct bitmap_index *bitmap_git, uint32_t pos)
> > +{
> > +	if (bitmap_is_midx(bitmap_git))
> > +		return nth_midxed_offset(bitmap_git->midx,
> > +					 pack_pos_to_midx(bitmap_git->midx, pos));
> > +	return nth_packed_object_offset(bitmap_git->pack,
> > +					pack_pos_to_index(bitmap_git->pack, pos));
> > +}
>
> Does anybody call this function? I don't see any users by the end of the
> series.

Nope, great catch. I looked at callers of nth_midxed_offset and nth_packed_object_offset to see if they could use this function and weren't, but the spots I looked at didn't appear to be able that they would be helped by the existence of this helper, so I just removed it.

Phew! This was quite the email to respond to, but I suppose that's my fault for writing such a monstrous patch. Thank you for taking the time to read through it all so carefully. I think you got the short end of the stick between writing this email and responding to it, so thank you :-).

Thanks, Taylor

Previous: Jeff KingNext: Jeff King
Message 104 of 273 in “multi-pack reachability bitmaps”
  1. 00/22 multi-pack reachability bitmapsTaylor Blau, Apr 9, 2021
  2. 01/22 pack-bitmap.c: harden 'test_bitmap_walk()' to check type bitmapsTaylor Blau, Apr 9, 2021
  3. 02/22 pack-bitmap-write.c: gracefully fail to write non-closed bitmapsTaylor Blau, Apr 9, 2021
  4. Jonathan TanApr 16, 2021
  5. 03/22 pack-bitmap-write.c: free existing bitmapsTaylor Blau, Apr 9, 2021
  6. 04/22 Documentation: build 'technical/bitmap-format' by defaultTaylor Blau, Apr 9, 2021
  7. 06/22 midx: make a number of functions non-staticTaylor Blau, Apr 9, 2021
  8. 05/22 Documentation: describe MIDX-based bitmapsTaylor Blau, Apr 9, 2021
  9. 07/22 midx: clear auxiliary .rev after replacing the MIDXTaylor Blau, Apr 9, 2021
  10. 08/22 midx: respect 'core.multiPackIndex' when writingTaylor Blau, Apr 9, 2021
  11. 09/22 pack-bitmap.c: introduce 'bitmap_num_objects()'Taylor Blau, Apr 9, 2021
  12. 10/22 pack-bitmap.c: introduce 'nth_bitmap_object_oid()'Taylor Blau, Apr 9, 2021
  13. 11/22 pack-bitmap.c: introduce 'bitmap_is_preferred_refname()'Taylor Blau, Apr 9, 2021
  14. 12/22 pack-bitmap: read multi-pack bitmapsTaylor Blau, Apr 9, 2021
  15. Jonathan TanApr 16, 2021
  16. Taylor BlauApr 16, 2021
  17. 13/22 pack-bitmap: write multi-pack bitmapsTaylor Blau, Apr 9, 2021
  18. Jonathan TanMay 4, 2021
  19. Taylor BlauMay 6, 2021
  20. Jonathan TanMay 6, 2021
  21. 14/22 t5310: move some tests to lib-bitmap.shTaylor Blau, Apr 9, 2021
  22. 16/22 t5326: test multi-pack bitmap behaviorTaylor Blau, Apr 9, 2021
  23. Jonathan TanMay 4, 2021
  24. 15/22 t/helper/test-read-midx.c: add --checksum modeTaylor Blau, Apr 9, 2021
  25. 17/22 t5310: disable GIT_TEST_MULTI_PACK_INDEX_WRITE_BITMAPTaylor Blau, Apr 9, 2021
  26. 19/22 t7700: update to work with MIDX bitmap test knobTaylor Blau, Apr 9, 2021
  27. 18/22 t5319: don't write MIDX bitmaps in t5319Taylor Blau, Apr 9, 2021
  28. 21/22 p5310: extract full and partial bitmap testsTaylor Blau, Apr 9, 2021
  29. 20/22 midx: respect 'GIT_TEST_MULTI_PACK_INDEX_WRITE_BITMAP'Taylor Blau, Apr 9, 2021
  30. 22/22 p5326: perf tests for MIDX bitmapsTaylor Blau, Apr 9, 2021
  31. Jonathan TanMay 4, 2021
  32. Junio C HamanoMay 5, 2021
  33. 00/24 multi-pack reachability bitmapsTaylor Blau, Jun 21, 2021
  34. 01/24 pack-bitmap.c: harden 'test_bitmap_walk()' to check type bitmapsTaylor Blau, Jun 21, 2021
  35. Ævar Arnfjörð BjarmasonJun 24, 2021
  36. Taylor BlauJul 14, 2021
  37. Jeff KingJul 21, 2021
  38. Taylor BlauJul 21, 2021
  39. 02/24 pack-bitmap-write.c: gracefully fail to write non-closed bitmapsTaylor Blau, Jun 21, 2021
  40. Ævar Arnfjörð BjarmasonJun 24, 2021
  41. Taylor BlauJul 14, 2021
  42. Ævar Arnfjörð BjarmasonJul 14, 2021
  43. Jeff KingJul 21, 2021
  44. Jeff KingJul 21, 2021
  45. Taylor BlauJul 21, 2021
  46. Jeff KingJul 23, 2021
  47. Taylor BlauJul 26, 2021
  48. Jeff KingJul 27, 2021
  49. 03/24 pack-bitmap-write.c: free existing bitmapsTaylor Blau, Jun 21, 2021
  50. Jeff KingJul 21, 2021
  51. 04/24 Documentation: build 'technical/bitmap-format' by defaultTaylor Blau, Jun 21, 2021
  52. Ævar Arnfjörð BjarmasonJun 24, 2021
  53. Taylor BlauJul 14, 2021
  54. Ævar Arnfjörð BjarmasonJul 14, 2021
  55. Jeff KingJul 21, 2021
  56. Jeff KingJul 21, 2021
  57. Jeff KingJul 21, 2021
  58. Jeff KingJul 21, 2021
  59. Taylor BlauJul 21, 2021
  60. Jeff KingJul 23, 2021
  61. Taylor BlauJul 26, 2021
  62. 05/24 Documentation: describe MIDX-based bitmapsTaylor Blau, Jun 21, 2021
  63. Jeff KingJul 21, 2021
  64. Taylor BlauJul 21, 2021
  65. Jeff KingJul 23, 2021
  66. 06/24 midx: make a number of functions non-staticTaylor Blau, Jun 21, 2021
  67. Ævar Arnfjörð BjarmasonJun 24, 2021
  68. Taylor BlauJul 14, 2021
  69. 07/24 midx: clear auxiliary .rev after replacing the MIDXTaylor Blau, Jun 21, 2021
  70. Jeff KingJul 21, 2021
  71. 08/24 midx: respect 'core.multiPackIndex' when writingTaylor Blau, Jun 21, 2021
  72. Ævar Arnfjörð BjarmasonJun 24, 2021
  73. Jeff KingJul 21, 2021
  74. Taylor BlauJul 21, 2021
  75. Jeff KingJul 23, 2021
  76. Taylor BlauJul 26, 2021
  77. Taylor BlauJul 26, 2021
  78. Jeff KingJul 27, 2021
  79. Taylor BlauJul 27, 2021
  80. Jeff KingJul 27, 2021
  81. Taylor BlauJul 27, 2021
  82. Jeff KingJul 27, 2021
  83. Taylor BlauJul 27, 2021
  84. Jeff KingJul 28, 2021
  85. Taylor BlauJul 29, 2021
  86. Jeff KingAug 12, 2021
  87. Jeff KingJul 27, 2021
  88. 09/24 midx: infer preferred pack when not given oneTaylor Blau, Jun 21, 2021
  89. Jeff KingJul 21, 2021
  90. Taylor BlauJul 21, 2021
  91. Jeff KingJul 23, 2021
  92. Taylor BlauJul 26, 2021
  93. 10/24 pack-bitmap.c: introduce 'bitmap_num_objects()'Taylor Blau, Jun 21, 2021
  94. Jeff KingJul 21, 2021
  95. 11/24 pack-bitmap.c: introduce 'nth_bitmap_object_oid()'Taylor Blau, Jun 21, 2021
  96. Taylor BlauJun 24, 2021
  97. Jeff KingJul 21, 2021
  98. Jeff KingJul 21, 2021
  99. 12/24 pack-bitmap.c: introduce 'bitmap_is_preferred_refname()'Taylor Blau, Jun 21, 2021
  100. Jeff KingJul 21, 2021
  101. Taylor BlauJul 21, 2021
  102. 13/24 pack-bitmap: read multi-pack bitmapsTaylor Blau, Jun 21, 2021
  103. Jeff KingJul 21, 2021
  104. Taylor BlauJul 21, 2021
  105. Jeff KingJul 23, 2021
  106. Jeff KingJul 23, 2021
  107. Taylor BlauJul 26, 2021
  108. 14/24 pack-bitmap: write multi-pack bitmapsTaylor Blau, Jun 21, 2021
  109. Ævar Arnfjörð BjarmasonJun 24, 2021
  110. Taylor BlauJul 15, 2021
  111. Jeff KingJul 21, 2021
  112. Taylor BlauJul 26, 2021
  113. Taylor BlauJul 26, 2021
  114. Jeff KingJul 27, 2021
  115. Taylor BlauJul 27, 2021
  116. Jeff KingJul 28, 2021
  117. Taylor BlauJul 29, 2021
  118. Jeff KingAug 12, 2021
  119. 15/24 t5310: move some tests to lib-bitmap.shTaylor Blau, Jun 21, 2021
  120. 16/24 t/helper/test-read-midx.c: add --checksum modeTaylor Blau, Jun 21, 2021
  121. 18/24 t0410: disable GIT_TEST_MULTI_PACK_INDEX_WRITE_BITMAPTaylor Blau, Jun 21, 2021
  122. 17/24 t5326: test multi-pack bitmap behaviorTaylor Blau, Jun 21, 2021
  123. 19/24 t5310: disable GIT_TEST_MULTI_PACK_INDEX_WRITE_BITMAPTaylor Blau, Jun 21, 2021
  124. 20/24 t5319: don't write MIDX bitmaps in t5319Taylor Blau, Jun 21, 2021
  125. 21/24 t7700: update to work with MIDX bitmap test knobTaylor Blau, Jun 21, 2021
  126. 22/24 midx: respect 'GIT_TEST_MULTI_PACK_INDEX_WRITE_BITMAP'Taylor Blau, Jun 21, 2021
  127. Ævar Arnfjörð BjarmasonJun 25, 2021
  128. 23/24 p5310: extract full and partial bitmap testsTaylor Blau, Jun 21, 2021
  129. 24/24 p5326: perf tests for MIDX bitmapsTaylor Blau, Jun 21, 2021
  130. Ævar Arnfjörð BjarmasonJun 25, 2021
  131. Taylor BlauJul 15, 2021
  132. Jeff KingJul 21, 2021
  133. 00/25 multi-pack reachability bitmapsTaylor Blau, Jul 27, 2021
  134. 01/25 pack-bitmap.c: harden 'test_bitmap_walk()' to check type bitmapsTaylor Blau, Jul 27, 2021
  135. 03/25 pack-bitmap-write.c: free existing bitmapsTaylor Blau, Jul 27, 2021
  136. 04/25 Documentation: describe MIDX-based bitmapsTaylor Blau, Jul 27, 2021
  137. 02/25 pack-bitmap-write.c: gracefully fail to write non-closed bitmapsTaylor Blau, Jul 27, 2021
  138. 06/25 midx: reject empty `--preferred-pack`'sTaylor Blau, Jul 27, 2021
  139. 09/25 midx: avoid opening multiple MIDXs when writingTaylor Blau, Jul 27, 2021
  140. Taylor BlauJul 29, 2021
  141. Jeff KingAug 12, 2021
  142. Jeff KingAug 12, 2021
  143. Taylor BlauAug 12, 2021
  144. 10/25 pack-bitmap.c: introduce 'bitmap_num_objects()'Taylor Blau, Jul 27, 2021
  145. 11/25 pack-bitmap.c: introduce 'nth_bitmap_object_oid()'Taylor Blau, Jul 27, 2021
  146. 12/25 pack-bitmap.c: introduce 'bitmap_is_preferred_refname()'Taylor Blau, Jul 27, 2021
  147. 08/25 midx: close linked MIDXs, avoid leaking memoryTaylor Blau, Jul 27, 2021
  148. 07/25 midx: infer preferred pack when not given oneTaylor Blau, Jul 27, 2021
  149. 14/25 pack-bitmap: read multi-pack bitmapsTaylor Blau, Jul 27, 2021
  150. 13/25 pack-bitmap.c: avoid redundant calls to try_partial_reuseTaylor Blau, Jul 27, 2021
  151. 17/25 t/helper/test-read-midx.c: add --checksum modeTaylor Blau, Jul 27, 2021
  152. Jeff KingAug 12, 2021
  153. Taylor BlauAug 12, 2021
  154. 16/25 t5310: move some tests to lib-bitmap.shTaylor Blau, Jul 27, 2021
  155. Jeff KingAug 12, 2021
  156. 18/25 t5326: test multi-pack bitmap behaviorTaylor Blau, Jul 27, 2021
  157. Jeff KingAug 12, 2021
  158. Jeff KingAug 12, 2021
  159. Taylor BlauAug 12, 2021
  160. Jeff KingAug 12, 2021
  161. 05/25 midx: clear auxiliary .rev after replacing the MIDXTaylor Blau, Jul 27, 2021
  162. 15/25 pack-bitmap: write multi-pack bitmapsTaylor Blau, Jul 27, 2021
  163. 19/25 t0410: disable GIT_TEST_MULTI_PACK_INDEX_WRITE_BITMAPTaylor Blau, Jul 27, 2021
  164. 20/25 t5310: disable GIT_TEST_MULTI_PACK_INDEX_WRITE_BITMAPTaylor Blau, Jul 27, 2021
  165. 21/25 t5319: don't write MIDX bitmaps in t5319Taylor Blau, Jul 27, 2021
  166. 22/25 t7700: update to work with MIDX bitmap test knobTaylor Blau, Jul 27, 2021
  167. 23/25 midx: respect 'GIT_TEST_MULTI_PACK_INDEX_WRITE_BITMAP'Taylor Blau, Jul 27, 2021
  168. Jeff KingAug 12, 2021
  169. 24/25 p5310: extract full and partial bitmap testsTaylor Blau, Jul 27, 2021
  170. 25/25 p5326: perf tests for MIDX bitmapsTaylor Blau, Jul 27, 2021
  171. Jeff KingAug 12, 2021
  172. Jeff KingAug 12, 2021
  173. Taylor BlauAug 12, 2021
  174. 00/25 multi-pack reachability bitmapsTaylor Blau, Aug 24, 2021
  175. 01/25 pack-bitmap.c: harden 'test_bitmap_walk()' to check type bitmapsTaylor Blau, Aug 24, 2021
  176. 02/25 pack-bitmap-write.c: gracefully fail to write non-closed bitmapsTaylor Blau, Aug 24, 2021
  177. 03/25 pack-bitmap-write.c: free existing bitmapsTaylor Blau, Aug 24, 2021
  178. 04/25 Documentation: describe MIDX-based bitmapsTaylor Blau, Aug 24, 2021
  179. 05/25 midx: clear auxiliary .rev after replacing the MIDXTaylor Blau, Aug 24, 2021
  180. Junio C HamanoAug 24, 2021
  181. Taylor BlauAug 24, 2021
  182. Junio C HamanoAug 24, 2021
  183. Taylor BlauAug 24, 2021
  184. Taylor BlauAug 24, 2021
  185. Junio C HamanoAug 24, 2021
  186. Junio C HamanoAug 24, 2021
  187. Taylor BlauAug 24, 2021
  188. Junio C HamanoAug 27, 2021
  189. Taylor BlauAug 27, 2021
  190. Junio C HamanoAug 29, 2021
  191. Taylor BlauAug 30, 2021
  192. Junio C HamanoAug 30, 2021
  193. Taylor BlauAug 30, 2021
  194. brian m. carlsonAug 30, 2021
  195. Junio C HamanoAug 30, 2021
  196. Taylor BlauAug 30, 2021
  197. Jeff KingAug 31, 2021
  198. Junio C HamanoAug 31, 2021
  199. Taylor BlauAug 31, 2021
  200. Junio C HamanoAug 31, 2021
  201. Taylor BlauAug 31, 2021
  202. Derrick StoleeAug 31, 2021
  203. Jeff KingAug 31, 2021
  204. Junio C HamanoAug 31, 2021
  205. Taylor BlauAug 31, 2021
  206. Derrick StoleeAug 31, 2021
  207. Jeff KingSep 1, 2021
  208. 06/25 midx: reject empty `--preferred-pack`'sTaylor Blau, Aug 24, 2021
  209. 07/25 midx: infer preferred pack when not given oneTaylor Blau, Aug 24, 2021
  210. 08/25 midx: close linked MIDXs, avoid leaking memoryTaylor Blau, Aug 24, 2021
  211. 09/25 midx: avoid opening multiple MIDXs when writingTaylor Blau, Aug 24, 2021
  212. 10/25 pack-bitmap.c: introduce 'bitmap_num_objects()'Taylor Blau, Aug 24, 2021
  213. 11/25 pack-bitmap.c: introduce 'nth_bitmap_object_oid()'Taylor Blau, Aug 24, 2021
  214. 12/25 pack-bitmap.c: introduce 'bitmap_is_preferred_refname()'Taylor Blau, Aug 24, 2021
  215. 13/25 pack-bitmap.c: avoid redundant calls to try_partial_reuseTaylor Blau, Aug 24, 2021
  216. 14/25 pack-bitmap: read multi-pack bitmapsTaylor Blau, Aug 24, 2021
  217. 15/25 pack-bitmap: write multi-pack bitmapsTaylor Blau, Aug 24, 2021
  218. 16/25 t5310: move some tests to lib-bitmap.shTaylor Blau, Aug 24, 2021
  219. 17/25 t/helper/test-read-midx.c: add --checksum modeTaylor Blau, Aug 24, 2021
  220. 19/25 t0410: disable GIT_TEST_MULTI_PACK_INDEX_WRITE_BITMAPTaylor Blau, Aug 24, 2021
  221. 20/25 t5310: disable GIT_TEST_MULTI_PACK_INDEX_WRITE_BITMAPTaylor Blau, Aug 24, 2021
  222. 18/25 t5326: test multi-pack bitmap behaviorTaylor Blau, Aug 24, 2021
  223. 21/25 t5319: don't write MIDX bitmaps in t5319Taylor Blau, Aug 24, 2021
  224. 23/25 midx: respect 'GIT_TEST_MULTI_PACK_INDEX_WRITE_BITMAP'Taylor Blau, Aug 24, 2021
  225. 25/25 p5326: perf tests for MIDX bitmapsTaylor Blau, Aug 24, 2021
  226. 24/25 p5310: extract full and partial bitmap testsTaylor Blau, Aug 24, 2021
  227. 22/25 t7700: update to work with MIDX bitmap test knobTaylor Blau, Aug 24, 2021
  228. Jeff KingAug 25, 2021
  229. Taylor BlauAug 25, 2021
  230. Taylor BlauAug 25, 2021
  231. Jeff KingAug 25, 2021
  232. Johannes BergAug 25, 2021
  233. Taylor BlauAug 26, 2021
  234. Taylor BlauAug 26, 2021
  235. Jeff KingAug 27, 2021
  236. Junio C HamanoAug 29, 2021
  237. 00/27 multi-pack reachability bitmapsTaylor Blau, Aug 31, 2021
  238. 01/27 pack-bitmap.c: harden 'test_bitmap_walk()' to check type bitmapsTaylor Blau, Aug 31, 2021
  239. 02/27 pack-bitmap-write.c: gracefully fail to write non-closed bitmapsTaylor Blau, Aug 31, 2021
  240. 03/27 pack-bitmap-write.c: free existing bitmapsTaylor Blau, Aug 31, 2021
  241. 04/27 Documentation: describe MIDX-based bitmapsTaylor Blau, Aug 31, 2021
  242. 05/27 midx: disallow running outside of a repositoryTaylor Blau, Aug 31, 2021
  243. 06/27 midx: fix `*.rev` cleanups with `--object-dir`Taylor Blau, Aug 31, 2021
  244. 07/27 midx: clear auxiliary .rev after replacing the MIDXTaylor Blau, Aug 31, 2021
  245. 09/27 midx: infer preferred pack when not given oneTaylor Blau, Aug 31, 2021
  246. 08/27 midx: reject empty `--preferred-pack`'sTaylor Blau, Aug 31, 2021
  247. 10/27 midx: close linked MIDXs, avoid leaking memoryTaylor Blau, Aug 31, 2021
  248. 11/27 midx: avoid opening multiple MIDXs when writingTaylor Blau, Aug 31, 2021
  249. 12/27 pack-bitmap.c: introduce 'bitmap_num_objects()'Taylor Blau, Aug 31, 2021
  250. 13/27 pack-bitmap.c: introduce 'nth_bitmap_object_oid()'Taylor Blau, Aug 31, 2021
  251. 14/27 pack-bitmap.c: introduce 'bitmap_is_preferred_refname()'Taylor Blau, Aug 31, 2021
  252. 16/27 pack-bitmap: read multi-pack bitmapsTaylor Blau, Aug 31, 2021
  253. 15/27 pack-bitmap.c: avoid redundant calls to try_partial_reuseTaylor Blau, Aug 31, 2021
  254. 17/27 pack-bitmap: write multi-pack bitmapsTaylor Blau, Aug 31, 2021
  255. 18/27 t5310: move some tests to lib-bitmap.shTaylor Blau, Aug 31, 2021
  256. 19/27 t/helper/test-read-midx.c: add --checksum modeTaylor Blau, Aug 31, 2021
  257. 20/27 t5326: test multi-pack bitmap behaviorTaylor Blau, Aug 31, 2021
  258. 22/27 t5310: disable GIT_TEST_MULTI_PACK_INDEX_WRITE_BITMAPTaylor Blau, Aug 31, 2021
  259. 21/27 t0410: disable GIT_TEST_MULTI_PACK_INDEX_WRITE_BITMAPTaylor Blau, Aug 31, 2021
  260. 23/27 t5319: don't write MIDX bitmaps in t5319Taylor Blau, Aug 31, 2021
  261. 24/27 t7700: update to work with MIDX bitmap test knobTaylor Blau, Aug 31, 2021
  262. 25/27 midx: respect 'GIT_TEST_MULTI_PACK_INDEX_WRITE_BITMAP'Taylor Blau, Aug 31, 2021
  263. 26/27 p5310: extract full and partial bitmap testsTaylor Blau, Aug 31, 2021
  264. 27/27 p5326: perf tests for MIDX bitmapsTaylor Blau, Aug 31, 2021
  265. Junio C HamanoSep 1, 2021
  266. Taylor BlauSep 1, 2021
  267. Junio C HamanoSep 1, 2021
  268. Taylor BlauSep 1, 2021
  269. Junio C HamanoSep 1, 2021
  270. Taylor BlauSep 1, 2021
  271. Jeff KingSep 2, 2021
  272. Jeff KingSep 2, 2021
  273. Jeff KingSep 2, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.