Problem
\map_rehash\ is called after every key deletion, allocating a new bucket array and walking all remaining entries. O(k × n) for k deletions.
Location: \src/value.c:645-668\
Proposed Fix
Lazy rehash — only shrink when \count < capacity / 4. Insert side already hashes on threshold; no change needed there.
Status
Baseline still present — \�alue_map_delete\ at \src/value.c:645-668\ unconditionally calls \map_rehash\ at line 666 on every deletion. No lazy threshold check.
Problem
\map_rehash\ is called after every key deletion, allocating a new bucket array and walking all remaining entries. O(k × n) for k deletions.
Location: \src/value.c:645-668\
Proposed Fix
Lazy rehash — only shrink when \count < capacity / 4. Insert side already hashes on threshold; no change needed there.
Status
Baseline still present — \�alue_map_delete\ at \src/value.c:645-668\ unconditionally calls \map_rehash\ at line 666 on every deletion. No lazy threshold check.