magic-nix-cache-action icon indicating copy to clipboard operation
magic-nix-cache-action copied to clipboard

Eval cache for IFD-heavy evaluations (Question / Feature Request)

Open blaggacao opened this issue 2 years ago • 4 comments

Is eval cache supported? The readme doesn't really mention something.

If not, is it in-scope?

blaggacao avatar Jun 27 '23 17:06 blaggacao

Builds that happen during evaluation time will be cached, is that what you mean?

grahamc avatar Jun 27 '23 18:06 grahamc

is that what you mean?

Actually, I was referring to these:

          ~/.cache/nix
          ~root/.cache/nix

It still can rip of +- 30s (very precious eval) cycle time or so in some adverse scenarios based on experiences with this implementation.

blaggacao avatar Jun 27 '23 18:06 blaggacao

In the future, we may support evaluation caching, but it isn't part of the goal just yet. Good idea, though!

grahamc avatar Jun 27 '23 18:06 grahamc

Probably you could somewhat leap-frog from here.

blaggacao avatar Jun 27 '23 18:06 blaggacao