summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-09-23 20:44:49 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-09-23 20:44:49 (GMT)
commitd1e376d2f95e718d29a6ef22377853f033d4d2f2 (patch)
tree83a2dda672c4de94628f8a664404cb5e98f48fab
parent50eb005eb371723704024c656da60a2c37658945 (diff)
parentafb32e81019c47e933368f126be3d6af657a2060 (diff)
downloadgit-d1e376d2f95e718d29a6ef22377853f033d4d2f2.zip
git-d1e376d2f95e718d29a6ef22377853f033d4d2f2.tar.gz
git-d1e376d2f95e718d29a6ef22377853f033d4d2f2.tar.bz2
Merge branch 'kz/revindex-comment-fix'
Header comment fix. * kz/revindex-comment-fix: pack-revindex.h: correct the time complexity descriptions
-rw-r--r--pack-revindex.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/pack-revindex.h b/pack-revindex.h
index 479b8f2..74f4eae 100644
--- a/pack-revindex.h
+++ b/pack-revindex.h
@@ -109,7 +109,7 @@ off_t pack_pos_to_offset(struct packed_git *p, uint32_t pos);
* If the reverse index has not yet been loaded, or the position is out of
* bounds, this function aborts.
*
- * This function runs in time O(log N) with the number of objects in the MIDX.
+ * This function runs in constant time.
*/
uint32_t pack_pos_to_midx(struct multi_pack_index *m, uint32_t pos);
@@ -120,7 +120,7 @@ uint32_t pack_pos_to_midx(struct multi_pack_index *m, uint32_t pos);
* If the reverse index has not yet been loaded, or the position is out of
* bounds, this function aborts.
*
- * This function runs in constant time.
+ * This function runs in time O(log N) with the number of objects in the MIDX.
*/
int midx_to_pack_pos(struct multi_pack_index *midx, uint32_t at, uint32_t *pos);