mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-28 09:21:55 +01:00
many_by_block_looks_import_in_linear_time and many_paper_layouts_are_read_in_linear_time checked for quadratic work by timing the import (under 4 and 5 seconds), so a slow machine could fail them and a regression that stayed under the bound passed. They now count the work in test builds: - the names `unique` tries for a new symbol: 4,000 symbols named by one block try fewer than 8,000 names (8,002,000 without the per-label suffix memo); - the layout names the paper-layout de-duplication compares: 10,000 layouts compare at most 10,000 (49,995,000 with a list in place of the set). The counters are thread-local cells under cfg(test); release builds do not count.