nix-community / nix-index

Quickly locate nix packages with specific files [maintainers=@bennofs @figsoda @raitobezarius]
Other
817 stars 50 forks source link

Speed up searches for bin/paths #176

Closed wmertens closed 2 years ago

wmertens commented 2 years ago

Perhaps an extra index could be built that only contains bin and sbin paths, and only allows full string search?

The problem is that nix-index is a lot slower than command-not-found: https://github.com/NixOS/nixpkgs/issues/39789#issuecomment-1000276113

for small systems, it would also be nice to /only/ have the binaries in the db, but that's a different issue I guess.