+5
−3
Loading
- When `evalModules` is called without deprecated `args`/`check` parameters (the common case), avoid `modules ++ []` which copies the entire module list for no reason. - `collectModules` was calling `collectStructuredModules` twice with identical arguments — once for `filterModules` and once for `toGraph`. Share the result via a `let` binding. - Replace `zipAttrsWith (n: v: v)` with `zipAttrs` - Replace `concatMap` with `filter`+`map` in `filterOverrides'` NixOS minimal eval improvement: -5.0% list_concats, -1.2% nrFunctionCalls, -0.7% nrThunks, -1.0% envs, -1.5% list_bytes.