mirror of
https://github.com/storytold/figcraft.git
synced 2026-11-10 01:53:10 +00:00
drop_dangling_aliases rebuilt the id set and rescanned every token each round, and an alias chain lost one link per round: quadratic in the chain. Dependencies are now indexed once and invalidation propagates through a queue, counting how many tokens make each variable id, so each token is visited a bounded number of times with the same result.