mirror of
https://github.com/NixOS/nix
synced 2025-06-26 20:01:15 +02:00
Add builtin function "partition"
The implementation of "partition" in Nixpkgs is O(n^2) (because of the use of ++), and for some reason was causing stack overflows in multi-threaded evaluation (not sure why). This reduces "nix-env -qa --drv-path" runtime by 0.197s and memory usage by 298 MiB (in non-Boehm mode).
This commit is contained in:
parent
c0a7b84748
commit
26d92017d3
7 changed files with 54 additions and 10 deletions
|
@ -71,7 +71,8 @@ public:
|
|||
|
||||
const Symbol sWith, sOutPath, sDrvPath, sType, sMeta, sName, sValue,
|
||||
sSystem, sOverrides, sOutputs, sOutputName, sIgnoreNulls,
|
||||
sFile, sLine, sColumn, sFunctor, sToString;
|
||||
sFile, sLine, sColumn, sFunctor, sToString,
|
||||
sRight, sWrong;
|
||||
Symbol sDerivationNix;
|
||||
|
||||
/* If set, force copying files to the Nix store even if they
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue