Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could nix-index make store optimization faster? #229

Open
mikepurvis opened this issue Jun 26, 2023 · 1 comment
Open

Could nix-index make store optimization faster? #229

mikepurvis opened this issue Jun 26, 2023 · 1 comment

Comments

@mikepurvis
Copy link

Running nix store optimize can be slow on even relatively small stores, since it needs to hash everything to find files that are identical between store paths. Could there be a role for nix-index in supplying individual file hashes for known store paths, so that optimization becomes trivial?

@SuperSandro2000
Copy link
Member

Could there be a role for nix-index in supplying individual file hashes for known store paths, so that optimization becomes trivial?

The cache of nix-index is not always up to date and identically to the nix store but since binaries rarely move around that is not a problem. Using such stale cache for optimization is probably not beneficial.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants