- Apr 22, 2020
-
-
Eelco Dolstra authored
-
- Apr 20, 2020
-
-
Eelco Dolstra authored
-
Eelco Dolstra authored
It uses the evaluation cache now rather than the ad hoc JSON cache.
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
- Apr 19, 2020
-
-
Eelco Dolstra authored
In particular, we store whether an attribute failed to evaluate (threw an exception) or was an unsupported type. This is to ensure that a repeated 'nix flake show' never has to evaluate anything, so it can execute without fetching the flake. With this, 'nix flake show nixpkgs/nixos-20.03 --legacy' executes in 0.6s (was 3.4s).
-
- Apr 18, 2020
-
-
Eelco Dolstra authored
-
- Apr 17, 2020
-
-
Eelco Dolstra authored
This speeds up the creation of the cache for the nixpkgs flake from 21.2s to 10.2s. Oddly, it also speeds up querying the cache (i.e. running 'nix flake show nixpkgs/nixos-20.03 --legacy') from 4.2s to 3.4s. (For comparison, running with --no-eval-cache takes 9.5s, so the overhead of building the SQLite cache is only 0.7s.)
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
Eelco Dolstra authored
In the fully cached case for the 'nixpkgs' flake, it went from 101s to 4.6s. Populating the cache went from 132s to 17.4s (which could probably be improved further by combining INSERTs).
-
- Apr 16, 2020
-
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
Eelco Dolstra authored
(cherry picked from commit 8f418473)
-
Eelco Dolstra authored
Usually this just writes to stdout, but for ProgressBar, we need to clear the current line, write the line to stdout, and then redraw the progress bar. (cherry picked from commit 696c0260)
-
Eelco Dolstra authored
-
Eelco Dolstra authored
More #3377.
-
Eelco Dolstra authored
We want to *trace* the 'Value *' arrays, not garbage-collect them! Otherwise the vectors/maps can end up pointing to nowhere. Fixes #3377. Closes #3384.
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
Eelco Dolstra authored
Usually this just writes to stdout, but for ProgressBar, we need to clear the current line, write the line to stdout, and then redraw the progress bar.
-
- Apr 15, 2020
-
-
Eelco Dolstra authored
SourceExprCommand: allocate the vSourceExpr via uncollectable memory
-
Eelco Dolstra authored
NIX_USER_CONF_FILES
-
- Apr 14, 2020
-
-
zimbatm authored
Motivation: maintain project-level configuration files. Document the whole situation a bit better so that it corresponds to the implementation, and add NIX_USER_CONF_FILES that allows overriding which user files Nix will load during startup.
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
- Apr 13, 2020
-
-
Andreas Rammhold authored
Previously the memory would occasionally be collected during eval since the GC doesn't consider the member variable as alive / doesn't scan the region of memory where the pointer lives. By using the traceable_allocator<T> allocator provided by Boehm GC we can ensure the memory isn't collected. It should be properly freed when SourceExprCommand goes out of scope.
-
- Apr 12, 2020
-
-
Eelco Dolstra authored
never use /var/folders for TMPDIR on darwin
-
Daiderd Jordan authored
This doesn't just cause problems for nix-store --serve but also results in certain build failures. Builds that use unix domain sockets in their tests often fail because the /var/folders prefix already consumes more than half of the maximum length of socket paths. struct sockaddr_un { sa_family_t sun_family; /* AF_UNIX */ char sun_path[108]; /* Pathname */ };
-
- Apr 11, 2020
-
-
Domen Kožar authored
Fix nix-build --check -K in sandbox w/o root
-
Domen Kožar authored
improve toFile error message when containing potential drv path
-
DavHau authored
-