lix/src
Eelco Dolstra 34f25124ba Make LocalStore::addToStore(srcPath) run in constant memory
This reduces memory consumption of

  nix-instantiate \
    -E 'with import <nixpkgs> {}; runCommand "foo" { src = ./blender; } "echo foo"' \
    --option nar-buffer-size 10000

(where ./blender is a 1.1 GiB tree) from 1716 to 36 MiB, while still
ensuring that we don't do any write I/O for small source paths (up to
'nar-buffer-size' bytes). The downside is that large paths are now
always written to a temporary location in the store, even if they
produce an already valid store path. Thus, adding large paths might be
slower and run out of disk space. ¯\_(ツ)_/¯ Of course, you can always
restore the old behaviour by setting 'nar-buffer-size' to a very high
value.
2020-07-08 22:07:21 +02:00
..
build-remote Revert the enum struct change 2020-06-18 22:11:26 +00:00
cpptoml Revert the enum struct change 2020-06-18 22:11:26 +00:00
libexpr move showTrace to new loggerSettings 2020-07-02 09:04:31 -06:00
libfetchers Shut up a clang warning 2020-07-03 14:50:07 +02:00
libmain move showTrace to new loggerSettings 2020-07-02 09:04:31 -06:00
libstore Make LocalStore::addToStore(srcPath) run in constant memory 2020-07-08 22:07:21 +02:00
libutil Fix 'got unknown message type 1 from Nix daemon' 2020-07-08 15:53:14 +02:00
nix Merge branch 'master' into add-trace 2020-07-03 07:57:36 -06:00
nix-build appended ' __attribute__((weak)); ' to 'extern char * * environ ' 2020-06-17 03:25:34 +01:00
nix-channel Merge branch 'master' into errors-phase-2 2020-05-11 14:35:30 -06:00
nix-collect-garbage Remove global -I flags 2020-03-30 15:30:19 +02:00
nix-copy-closure Revert the enum struct change 2020-06-18 22:11:26 +00:00
nix-daemon Remove trailing whitespace 2020-06-15 14:12:39 +02:00
nix-env convenience form of addTrace 2020-06-24 13:46:25 -06:00
nix-instantiate remove 'format' from Error constructor calls 2020-04-21 17:07:07 -06:00
nix-prefetch-url Revert the enum struct change 2020-06-18 22:11:26 +00:00
nix-store Merge branch 'validPathInfo-temp' into validPathInfo-ca-proper-datatype 2020-06-18 23:01:58 +00:00
resolve-system-dependencies StorePath: Rewrite in C++ 2020-06-16 14:28:41 +02:00