Merge pull request #6138 from ccstolley/ccs_packedrefs_fast

refs: Speed up packed lookups.
This commit is contained in:
Edward Thomson
2022-01-30 13:43:43 -05:00
committed by GitHub
7 changed files with 334 additions and 32 deletions

View File

@@ -1963,3 +1963,8 @@ v0.22
functions. This is not something which we can know to do. A
last-resort convenience function is provided in sys/openssl.h,
`git_openssl_set_locking()` which can be used to set the locking.
* `git_reference_*()` functions use mmap() + binary search for packed
refs lookups when using the fs backend. Previously all entries were
read into a hashtable, which could be slow for repositories with a
large number of refs.