Skip to content

Commit aae54d5

Browse files
authored
Merge pull request libgit2#6138 from ccstolley/ccs_packedrefs_fast
refs: Speed up packed lookups.
2 parents 12c2eef + 0a72a3a commit aae54d5

File tree

7 files changed

+334
-32
lines changed

7 files changed

+334
-32
lines changed

docs/changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1963,3 +1963,8 @@ v0.22
19631963
functions. This is not something which we can know to do. A
19641964
last-resort convenience function is provided in sys/openssl.h,
19651965
`git_openssl_set_locking()` which can be used to set the locking.
1966+
1967+
* `git_reference_*()` functions use mmap() + binary search for packed
1968+
refs lookups when using the fs backend. Previously all entries were
1969+
read into a hashtable, which could be slow for repositories with a
1970+
large number of refs.

0 commit comments

Comments
 (0)