mirror of
https://github.com/storytold/wordcraft.git
synced 2026-12-02 02:37:26 -06:00
Dispatch paragraphs directly in collect_block and non-Group inline objects directly in collect_object/remap_object, initializing iterative stacks lazily with Vec::new() so heap allocation occurs only for tables nested inside tables or non-empty groups nested inside groups. On the common no-surviving-references fast path, retain_referenced_revisions performs zero heap allocations for paragraphs, non-nested tables, and non-nested inline objects while keeping every resolution output identical.