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

Exclude packages with no files from the index. #266

Merged
merged 1 commit into from
Mar 24, 2025

Conversation

vkryachko
Copy link
Contributor

@vkryachko vkryachko commented Mar 16, 2025

Noticed that nix-index-database "small" mostly consists of package(^p\0) lines without its corresponding path as many nix packages don't have entries under /bin/.

This reduced the small index size from 3.9MB to 967K. Whereas the number of paths in the database is identical and equall to 82984(nix-index ran at github:NixOS/nixpkgs/5aba99242eb2ca90cdc4eea40d61ad9157e5913c)

Noticed that nix-index-database "small" mostly consists of package(^p\0)
lines without its corresponding path as many nix packages don't have
entries under /bin/.

This reduced the small index size from 3.9MB to 967K.
Copy link
Member

@RaitoBezarius RaitoBezarius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here's, boss.

@RaitoBezarius RaitoBezarius merged commit 03b8617 into nix-community:master Mar 24, 2025
5 checks passed
@vkryachko
Copy link
Contributor Author

Thanks, Raito! :)

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

Successfully merging this pull request may close these issues.

2 participants