nixpkgs-architecture / simple-package-paths

Nix RFC draft for auto-calling packages in nixpkgs
18 stars 1 forks source link

To do sharding or not #1

Open infinisil opened 2 years ago

infinisil commented 2 years ago

We had some good discussion about this RFC on Matrix. Mainly around whether sharding (splitting the auto-called directory up based on prefixes) is a good idea. Involved were @alyssais, @roberth, @adisbladis and @infinisil. The strength of arguments were also discussed.

Additional motivations for this RFC in general:

These are additional arguments for sharding:

These are some additional arguments against sharding:

Benchmarking:

How would sharding be done?

Meta:

roberth commented 2 years ago

Meta:

SuperSandro2000 commented 2 years ago

Another argument for sharding:

  • Improves git status performance (good with less recursive structures)

git has a build in setting core.fsmonitor which already improves speed in the current layout by a lot.

infinisil commented 2 years ago

We had a poll to probe how many people relied on the GitHub code navigation feature to find packages. Turns out a lot of people do, which is a strong argument in favor of sharding.

infinisil commented 1 year ago

Depends on #18

infinisil commented 1 year ago

The general consensus is that we should do sharding. PR #20 changes the draft accordingly. We discussed this a lot in Meeting #18

infinisil commented 1 year ago

Depends on #17