git/refs
shejialuo 86ddd588f2 packed-backend: mmap large "packed-refs" file during fsck
During fsck, we use "strbuf_read" to read the content of "packed-refs"
without using mmap mechanism. This is a bad practice which would consume
more memory than using mmap mechanism. Besides, as all code paths in
"packed-backend.c" use this way, we should make "fsck" align with the
current codebase.

As we have introduced the helper function "allocate_snapshot_buffer", we
can simply use this function to use mmap mechanism.

Suggested-by: Jeff King <peff@peff.net>
Suggested-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: shejialuo <shejialuo@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2025-05-14 12:32:59 -07:00
..
debug.c Merge branch 'ps/object-wo-the-repository' 2025-04-15 13:50:15 -07:00
files-backend.c Merge branch 'ps/object-file-cleanup' 2025-04-24 17:25:33 -07:00
iterator.c refs/iterator: implement seeking for merged iterators 2025-03-12 11:31:19 -07:00
packed-backend.c packed-backend: mmap large "packed-refs" file during fsck 2025-05-14 12:32:59 -07:00
packed-backend.h refs/files: use heuristic to decide whether to repack with `--auto` 2024-09-04 08:03:24 -07:00
ref-cache.c refs/iterator: implement seeking for ref-cache iterators 2025-03-12 11:31:20 -07:00
ref-cache.h refs: keep track of unresolved reference value in iterators 2024-08-09 08:47:33 -07:00
refs-internal.h refs: support rejection in batch updates during F/D checks 2025-04-08 07:57:21 -07:00
reftable-backend.c Merge branch 'kn/non-transactional-batch-updates' 2025-04-16 13:54:19 -07:00