stdenv/check-meta: Fix performance regressions introduced in #294347#300177
stdenv/check-meta: Fix performance regressions introduced in #294347#300177adisbladis merged 2 commits intoNixOS:masterfrom
Conversation
Hopefully this will result in people not adding new `lib.xxx` to check-meta.nix.
lolbinarycat
left a comment
There was a problem hiding this comment.
faster eval is good, and these changes only increase code complexity by a very small amount.
|
Merging as approved. |
|
this change doesn't appear to have any effect. the cpu improvement of -%0.46 seems to be just noise. source: look at the performance improvements of the automated r-ryantm version updates that are basically an eval no-op and this is well in the range of those no-op change. |
|
There are plenty of performance issues that don't show up at all in ofborg because it evaluates the performance report with meta checking disabled. Also I'm not just concerned about wall time. I'm also concered about GC pressure, unnecessary memory accesses and the like. |
|
i see. i am a little confused as #294347 (comment) asked to look at the performance report and here you're saying the performance report doesn't matter because it doesn't check the meta attributes. so the performance report seems like it isn't applicable at all to changes in to perform checks locally, i run https://github.com/NixOS/ofborg?tab=readme-ov-file#running-meta-checks-locally though it is non-obvious to me how to generate a report as is done by the CI. Do you know how to generate the report? was that done on this change? [edit] found NixOS/nix#10256 which mentions |
|
comparison of this change (opt), patch reverted (unopt) and unopt revert (before). median of 5 runs using local meta checks (x64-linux only).
and percentages:
|
|
getting rid of the
|
|
what about making it default to an empty list instead? i think that more appropriately expresses the semantic of "no value", and should be easier to process. |
about the same
|
Description of changes
This fixes a few performance related regressions added in #294347
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.