diff options
| author | Jiang Xin <worldhello.net@gmail.com> | 2022-09-28 08:03:38 +0800 |
|---|---|---|
| committer | Jiang Xin <worldhello.net@gmail.com> | 2022-09-28 08:03:38 +0800 |
| commit | 4ff58e9690fd7f06c0ae1a32480effb21ef8139e (patch) | |
| tree | 3e0f4e0dcd39e8fa80b1d4e7bff0639c9c7e6b12 | |
| parent | 33ccfd1e5ba5c80d66f01224a3b9f2e9060d635a (diff) | |
| parent | bcd6bc478adc4951d57ec597c44b12ee74bc88fb (diff) | |
| download | git-4ff58e9690fd7f06c0ae1a32480effb21ef8139e.tar.xz | |
Merge branch 'main' of github.com:git/git
* 'main' of github.com:git/git:
Git 2.38-rc2
pack-bitmap: remove trace2 region from hot path
| -rwxr-xr-x | GIT-VERSION-GEN | 2 | ||||
| -rw-r--r-- | pack-bitmap.c | 3 | ||||
| -rwxr-xr-x | t/t5310-pack-bitmaps.sh | 7 |
3 files changed, 2 insertions, 10 deletions
diff --git a/GIT-VERSION-GEN b/GIT-VERSION-GEN index a6d1044e8d..8fdc6a5bf2 100755 --- a/GIT-VERSION-GEN +++ b/GIT-VERSION-GEN @@ -1,7 +1,7 @@ #!/bin/sh GVF=GIT-VERSION-FILE -DEF_VER=v2.38.0-rc1 +DEF_VER=v2.38.0-rc2 LF=' ' diff --git a/pack-bitmap.c b/pack-bitmap.c index 9d5205055a..440407f1be 100644 --- a/pack-bitmap.c +++ b/pack-bitmap.c @@ -830,10 +830,9 @@ struct ewah_bitmap *bitmap_for_commit(struct bitmap_index *bitmap_git, if (!bitmap_git->table_lookup) return NULL; - trace2_region_enter("pack-bitmap", "reading_lookup_table", the_repository); + /* this is a fairly hot codepath - no trace2_region please */ /* NEEDSWORK: cache misses aren't recorded */ bitmap = lazy_bitmap_for_commit(bitmap_git, commit); - trace2_region_leave("pack-bitmap", "reading_lookup_table", the_repository); if (!bitmap) return NULL; return lookup_stored_bitmap(bitmap); diff --git a/t/t5310-pack-bitmaps.sh b/t/t5310-pack-bitmaps.sh index 7e50f8e765..6d693eef82 100755 --- a/t/t5310-pack-bitmaps.sh +++ b/t/t5310-pack-bitmaps.sh @@ -455,13 +455,6 @@ test_expect_success 'verify writing bitmap lookup table when enabled' ' grep "\"label\":\"writing_lookup_table\"" trace2 ' -test_expect_success 'lookup table is actually used to traverse objects' ' - git repack -adb && - GIT_TRACE2_EVENT="$(pwd)/trace3" \ - git rev-list --use-bitmap-index --count --all && - grep "\"label\":\"reading_lookup_table\"" trace3 -' - test_expect_success 'truncated bitmap fails gracefully (lookup table)' ' test_config pack.writebitmaphashcache false && git repack -adb && |
