In the case of black moving and the wK being fixed, RAM for 19 K-slices should be enough to not lose efficiency.syzygy wrote: ↑Wed Feb 04, 2026 3:52 pm So it seems that if 58 K-slices can fit in RAM, which corresponds to about 300 GB, the K-slice approach should be as efficient as the regular approach that requires 2.38 TB of RAM. With less RAM you have to be a bit more careful to do things in a clever order.
Ignoring the wK, we let the bK zig-zag a1-h1-h2-a2-a3-h3...-a8. We load the K-slices that we need and we drop those that we no longer need.
When we are in g2, we have loaded 19 slices (a1-h1,a2-h2,f3,g3,h3).
[d]8/8/8/8/8/5kkk/kkkkkkkk/kkkkkkkk b - - 0 1
Then at f2 we drop h1 and load e3. So still 19 slices.
[d]8/8/8/8/8/4kkkk/kkkkkkkk/kkkkkkk1 b - - 0 1/fen]
And it seems it continues this way, i.e. 19 slices at once in RAM means we don't need to reload anything.
The presence of the wK somewhere in a1-d1-d4 only reduces the number of slices you need to load. (And if the wK is on the diagonal, the bK only needs to visit the lower half of the board including the diagonal, so even less to do.)
The case of white moving in a1-d1-d4 with the bK "fixed" in an orbit seems more complicated.
But can't we still do exactly the same?
wK starts in a1, moves to d1. Then when it moves to e1, the board flips horizontally and the wK is back on d1 but the black king is in another location. The wK continues to a1, then moves up (corresponding to h1-h2). Instead of ending up in a2, the board flips diagonally and the wK is now b1 and then moves up to b2. If I'm not mistaken, the loaded king slices remain as valid as before. It just looks a lot more chaotic.
If this indeed works, then 19 K-slices are again enough.
19 K-slices take up 97.9 GB, so 128 GB of RAM would be comfortable.