Skip to content

enable bitmap hash-cache by default

Jeff King git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2t5310: correctly remove bitmaps for jgit testt/t5310-pack-bitmaps.sh+1 -12 replies
2/2pack-objects: default to writing bitmap hash-cacheDocumentation/config/pack.txt builtin/pack-objects.c t/perf/p5310-pack-bitmaps.sh +2 more+4 -90 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] enable bitmap hash-cache by default
Quoted 7 lines · Jeff King
Quoted 4 lines · Eric Wong
Quoted 1 line

The reason it defaults to off is for on-disk compatibility with JGit.

Right. Our documentation seems to indicate JGit just warns (but doesn't fall over), so maybe that can be considered separately.

Quoted 6 lines

I think it was a hard error in the beginning, but they changed it pretty soon after we added more flags. So it might be reasonable to just enable it by default (but it wouldn't hurt to double check the behavior).

I tried running t5310 (which does a back-and-forth with jgit) using this patch:

I dug up the actual JGit change, and it was indeed from 2014. So here's a more complete series to handle that. There's a minor performance mystery in the second patch, but I think it might be OK to proceed even without solving it.

Conceptually these go on top of your patch, but they could be applied separately.

[1/2]: t5310: correctly remove bitmaps for jgit test [2/2]: pack-objects: default to writing bitmap hash-cache

 Documentation/config/pack.txt      | 4 +---
 builtin/pack-objects.c             | 2 +-
 t/perf/p5310-pack-bitmaps.sh       | 3 +--
 t/perf/p5311-pack-bitmaps-fetch.sh | 1 -
 t/t5310-pack-bitmaps.sh            | 5 ++---
 5 files changed, 5 insertions(+), 10 deletions(-)

-Peff