From 4bc6240ac0e4b6b539d121d6c8e9b779d436e082 Mon Sep 17 00:00:00 2001 From: Ryan Fleury Date: Mon, 20 Oct 2025 13:45:14 -0700 Subject: [PATCH] actually record hit offsets in linked list gathering artifact creation! --- src/eval/eval_types.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/eval/eval_types.c b/src/eval/eval_types.c index 93f426f9..d5fc5d2b 100644 --- a/src/eval/eval_types.c +++ b/src/eval/eval_types.c @@ -2653,6 +2653,15 @@ e_list_gather_artifact_create(String8 key, B32 *cancel_signal, B32 *retry_out, U chunk->count += 1; total_count += 1; + //- rjf: record this offset in our hit-offset table + { + U64 hash = u64_hash_from_str8(str8_struct(&off)); + U64 slot_idx = hash%hit_slots_count; + HitOffsetNode *n = push_array(scratch.arena, HitOffsetNode, 1); + n->off = off; + SLLStackPush(hit_slots[slot_idx], n); + } + //- rjf: read next offset, advance B32 read_stale = 0; B32 read_good = ctrl_process_memory_read(process, r1u64(off + member_element_off, off + member_size), &read_stale, &next_off, 0);