diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2018-07-12T16·44+0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2018-07-12T16·48+0200 |
commit | 1b34b69b45106e5bfdbdc0201d3ff4dcd36632f0 (patch) | |
tree | 2c140fb8ed103cd1c76b4c6e28714e02a0004020 /src/libexpr/lexer.l | |
parent | c2de2ff385a7eed2cb5853d7fde203a6394698ea (diff) |
nix-prefetch-url: Download file in constant memory
Before: $ command time nix-prefetch-url https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.17.6.tar.xz 1.19user 1.02system 0:41.96elapsed 5%CPU (0avgtext+0avgdata 182720maxresident)k After: 1.38user 1.05system 0:39.73elapsed 6%CPU (0avgtext+0avgdata 16204maxresident)k Note however that addToStore() can still take a lot of memory (e.g. RemoteStore::addToStore() is constant space, but LocalStore::addToStore() isn't; that's fixed by https://github.com/edolstra/nix/commit/c94b4fc7ee0c7b322a5f3c7ee784063b47a11d98 though). Fixes #1400.
Diffstat (limited to 'src/libexpr/lexer.l')
0 files changed, 0 insertions, 0 deletions