summaryrefslogtreecommitdiff
path: root/reftable/tree.h
AgeCommit message (Collapse)AuthorFilesLines
2021-10-08reftable: a generic binary tree implementationLibravatar Han-Wen Nienhuys1-0/+34
The reftable format includes support for an (OID => ref) map. This map can speed up visibility and reachability checks. In particular, various operations along the fetch/push path within Gerrit have ben sped up by using this structure. The map is constructed with help of a binary tree. Object IDs are hashes, so they are uniformly distributed. Hence, the tree does not attempt forced rebalancing. Signed-off-by: Han-Wen Nienhuys <hanwen@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>