Name |
Last commit
|
Last update |
---|---|---|
.. | ||
logs/refs/heads | Loading commit data... | |
objects | ||
refs | ||
worktrees/testrepo-worktree | ||
HEAD | ||
HEAD_TRACKER | ||
config | ||
index | ||
packed-refs |
Currently ref lookups require loading the entire packed-refs file into a hashmap in memory. For repos with large numbers of refs this can be painfully slow. This patch replaces the existing lookup code and instead mmap()'s the packed-refs file and performs a binary search to locate the ref entry. Git uses a similiar approach. The old hash table codepath is still used for unsorted packed-refs files. This patch also fixes a minor bug where the "peeled" trait is never parsed correctly from the packed-refs header.
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
logs/refs/heads | Loading commit data... | |
objects | Loading commit data... | |
refs | Loading commit data... | |
worktrees/testrepo-worktree | Loading commit data... | |
HEAD | Loading commit data... | |
HEAD_TRACKER | Loading commit data... | |
config | Loading commit data... | |
index | Loading commit data... | |
packed-refs | Loading commit data... |