diff options
| author | lhchavez <lhchavez@lhchavez.com> | 2021-01-05 17:20:27 -0800 |
|---|---|---|
| committer | lhchavez <lhchavez@lhchavez.com> | 2021-03-10 07:09:47 -0800 |
| commit | 248606ebb0906076367fcfce9574f522f818c26f (patch) | |
| tree | a3d349ff8cc13ca5fc3a432c9967703f26a63328 /include/git2/odb.h | |
| parent | 4f4b1139d23a7b38cceb9d83acbfaf73151f522f (diff) | |
| download | libgit2-248606ebb0906076367fcfce9574f522f818c26f.tar.gz | |
commit-graph: Use the commit-graph in revwalks
This change makes revwalks a bit faster by using the `commit-graph` file
(if present). This is thanks to the `commit-graph` allow much faster
parsing of the commit information by requiring near-zero I/O (aside from
reading a few dozen bytes off of a `mmap(2)`-ed file) for each commit,
instead of having to read the ODB, inflate the commit, and parse it.
This is done by modifying `git_commit_list_parse()` and letting it use
the ODB-owned commit-graph file.
Part of: #5757
Diffstat (limited to 'include/git2/odb.h')
0 files changed, 0 insertions, 0 deletions
