Files
R8Forge/include
starcells a363351b5b Parallel cost search: measured, and left off by default
Tried the obvious split -- one worker per possible first block, since a
program's first block is unique and the answers cannot overlap -- and measured
it on the full adder at limit 82:

    workers   wall    total CPU   peak memory
    1         1350s    1350s       11 GB
    8          ~10min  4600s       14 GB
    32         --      4870s       17 GB

So the answers do not overlap but the *search* does: every prefix walks into the
same middle of the graph, and with a table per worker that middle is explored
once per worker instead of once overall.  Three to four times the work and more
memory, for a modest wall clock win.

Kept the code (opt.threads > 1) because it is correct and it is the right shape
for a machine with more memory, but the default is one worker.  The parallel
split that should actually pay off is inside one shared table: expand the
current Dial bucket across threads, insert through a sharded table.  That is
the next attempt, not this one.
2026-11-06 11:40:07 +08:00
..