Adding parallel evaluation to Nix

19 Likes

Really cool stuff, but:

In the near future, we will make more Nix subcommands multi-threaded, such as nix flake check.

I wonder if the improvements will ever trickle down to the old-school CLI (nix-build et al) for those of us that refuse to fully convert to the experimental stuff just yet :thinking:

1 Like

What if the actual problem of slow nix evals is bad cache locality, that leads to bad IPC (instructions per clock), because of the recursive structures spread in the memory?

Parallel evaluation would help a bit in the flamegraph that is not waiting the ram to react. Actually, a flamegraph would not even detect those IPC issues.

Is it even possible to evaluate a functional language with good memory locality?

1 Like