-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
featureFeature request or proposalFeature request or proposal
Description
Is your feature request related to a problem?
GC with derivation scanning is currently slow. If we always parse structured attrs JSON, it will be even slower.
Proposed solution
The simplest thing to do is make structured attrs a "lazily loaded field", so we can defer parsing until its is needed. but that is gross.
Alternative solutions
Better solutions are:
-
Use a special derivation parser for GC that just gets out the output paths, since those are the only things which are needed. That would be faster than than parsing the whole derivation with or without structured attrs parsed JSON.
-
Stop using
.drv
files, and instead use database tables. Than we can look at e.g. aDerivationOutputs
table with high throughput.
Additional context
Checklist
- checked latest Nix manual (source)
- checked open feature issues and pull requests for possible duplicates
Add 👍 to issues you find important.
Metadata
Metadata
Assignees
Labels
featureFeature request or proposalFeature request or proposal