Fixes#43015 for me and hopefully also similar issues.
== Resource consumption ==
TL;DR: no change for small-memory cases, less CPU for large-memory cases.
I assume almost all of the large memory usage is just the expression
evaluation and managed by the GC, so I used just `nix-env -q...` to test.
Old and new lines for each command follow. I tried to run each several
times, but the values were very stable (<1% difference on re-runs),
so only one line for each command-version pair is provided.
$ time nix-env -f . -qaP --description -A nix >/dev/null
- 0.06user 0.01system 0:00.07elapsed 101%CPU (0avgtext+0avgdata 29036maxresident)k
+ 0.06user 0.01system 0:00.07elapsed 102%CPU (0avgtext+0avgdata 29864maxresident)k
$ time nix-env -f . -qaP --description >/dev/null
- 6.45user 0.36system 0:06.82elapsed 99%CPU (0avgtext+0avgdata 1021024maxresident)k
+ 6.23user 0.33system 0:06.57elapsed 100%CPU (0avgtext+0avgdata 938408maxresident)k
$ time nix-env -f . --show-trace -qa --drv-path --system --meta --xml 2>&1 >/dev/null
- 56.35user 0.96system 0:31.03elapsed 184%CPU (0avgtext+0avgdata 3207708maxresident)k
+ 44.80user 0.91system 0:26.12elapsed 175%CPU (0avgtext+0avgdata 3192696maxresident)k
$ time ./result-nix-large/bin/nix-instantiate --dry-run --eval --strict \
--show-trace ./maintainers/scripts/eval-release.nix > /dev/null
- Too many heap sections: Increase MAXHINCR or MAX_HEAP_SECTS
- Command terminated by signal 6
- 175.18user 2.68system 1:17.42elapsed 229%CPU (0avgtext+0avgdata 8468440maxresident)k
+ 178.48user 2.78system 1:15.11elapsed 241%CPU (0avgtext+0avgdata 8460572maxresident)k
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
This update was made based on information from https://repology.org/metapackage/apache-jena-fuseki/versions.
These checks were done:
- built on NixOS
- Warning: no invocation of /nix/store/9jxxnylr0z89yaqi1g9hl909z0a7aw0a-apache-jena-fuseki-3.8.0/bin/.fuseki-wrapped had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/9jxxnylr0z89yaqi1g9hl909z0a7aw0a-apache-jena-fuseki-3.8.0/bin/fuseki had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/9jxxnylr0z89yaqi1g9hl909z0a7aw0a-apache-jena-fuseki-3.8.0/bin/.fuseki-server-wrapped had a zero exit code or showed the expected version
- /nix/store/9jxxnylr0z89yaqi1g9hl909z0a7aw0a-apache-jena-fuseki-3.8.0/bin/fuseki-server passed the binary check.
- Warning: no invocation of /nix/store/9jxxnylr0z89yaqi1g9hl909z0a7aw0a-apache-jena-fuseki-3.8.0/bin/.s-delete-wrapped had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/9jxxnylr0z89yaqi1g9hl909z0a7aw0a-apache-jena-fuseki-3.8.0/bin/s-delete had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/9jxxnylr0z89yaqi1g9hl909z0a7aw0a-apache-jena-fuseki-3.8.0/bin/.s-get-wrapped had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/9jxxnylr0z89yaqi1g9hl909z0a7aw0a-apache-jena-fuseki-3.8.0/bin/s-get had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/9jxxnylr0z89yaqi1g9hl909z0a7aw0a-apache-jena-fuseki-3.8.0/bin/.s-head-wrapped had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/9jxxnylr0z89yaqi1g9hl909z0a7aw0a-apache-jena-fuseki-3.8.0/bin/s-head had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/9jxxnylr0z89yaqi1g9hl909z0a7aw0a-apache-jena-fuseki-3.8.0/bin/.s-post-wrapped had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/9jxxnylr0z89yaqi1g9hl909z0a7aw0a-apache-jena-fuseki-3.8.0/bin/s-post had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/9jxxnylr0z89yaqi1g9hl909z0a7aw0a-apache-jena-fuseki-3.8.0/bin/.s-put-wrapped had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/9jxxnylr0z89yaqi1g9hl909z0a7aw0a-apache-jena-fuseki-3.8.0/bin/s-put had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/9jxxnylr0z89yaqi1g9hl909z0a7aw0a-apache-jena-fuseki-3.8.0/bin/.s-query-wrapped had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/9jxxnylr0z89yaqi1g9hl909z0a7aw0a-apache-jena-fuseki-3.8.0/bin/s-query had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/9jxxnylr0z89yaqi1g9hl909z0a7aw0a-apache-jena-fuseki-3.8.0/bin/.s-update-wrapped had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/9jxxnylr0z89yaqi1g9hl909z0a7aw0a-apache-jena-fuseki-3.8.0/bin/s-update had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/9jxxnylr0z89yaqi1g9hl909z0a7aw0a-apache-jena-fuseki-3.8.0/bin/.s-update-form-wrapped had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/9jxxnylr0z89yaqi1g9hl909z0a7aw0a-apache-jena-fuseki-3.8.0/bin/s-update-form had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/9jxxnylr0z89yaqi1g9hl909z0a7aw0a-apache-jena-fuseki-3.8.0/bin/.soh-wrapped had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/9jxxnylr0z89yaqi1g9hl909z0a7aw0a-apache-jena-fuseki-3.8.0/bin/soh had a zero exit code or showed the expected version
- 1 of 22 passed binary check by having a zero exit code.
- 0 of 22 passed binary check by having the new version present in output.
- found 3.8.0 with grep in /nix/store/9jxxnylr0z89yaqi1g9hl909z0a7aw0a-apache-jena-fuseki-3.8.0
- directory tree listing: https://gist.github.com/2403f38b197834ff0ef5bd15d4a313bc
- du listing: https://gist.github.com/85a408dc989753cdca73ef553ee6d548
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
This update was made based on information from https://repology.org/metapackage/you-get/versions.
These checks were done:
- built on NixOS
- /nix/store/fbylh0d2jn5306sn6grzn15c5cb5wi7b-you-get-0.4.1099/bin/.you-get-wrapped passed the binary check.
- /nix/store/fbylh0d2jn5306sn6grzn15c5cb5wi7b-you-get-0.4.1099/bin/you-get passed the binary check.
- 2 of 2 passed binary check by having a zero exit code.
- 0 of 2 passed binary check by having the new version present in output.
- found 0.4.1099 with grep in /nix/store/fbylh0d2jn5306sn6grzn15c5cb5wi7b-you-get-0.4.1099
- directory tree listing: https://gist.github.com/10a8076f36d5cef1644b16df703b91bd
- du listing: https://gist.github.com/bff762c6ef186599bdcac2f64b255ccf
Nix now supports floats & we can pretty easily map them to Plist’s
<real></real> type. Note that I am unsure how this affects older
version of Nix that may or may not have builtins.isFloat available.
Make sure this satisfies minver.nix’s "1.11" requirement.