diff options
author | Jonathan Tan <jonathantanmy@google.com> | 2020-08-24 12:16:35 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-08-24 14:11:14 -0700 |
commit | a7f7e84a496d194ceeeba9827d17c4c206932d2b (patch) | |
tree | 58e17e4e3686b3ece1b22427302c93722d863d2c /t/t0012-help.sh | |
parent | index-pack: unify threaded and unthreaded code (diff) | |
download | tgif-a7f7e84a496d194ceeeba9827d17c4c206932d2b.tar.xz |
index-pack: remove redundant child field
This is refactoring 1 of 2 to simplify struct base_data.
In index-pack, each thread maintains a doubly-linked list of the delta
chain that it is currently processing (the "base" and "child" pointers
in struct base_data). When a thread exceeds the delta base cache limit
and needs to reclaim memory, it uses the "child" pointers to traverse
the lineage, reclaiming the memory of the eldest delta bases first.
A subsequent patch will perform memory reclaiming in a different way and
will thus no longer need the "child" pointer. Because the "child"
pointer is redundant even now, remove it so that the aforementioned
subsequent patch will be clearer. In the meantime, reclaim memory in the
reverse order of the "base" pointers.
Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t0012-help.sh')
0 files changed, 0 insertions, 0 deletions