lix/src/nix-store
Eelco Dolstra 2825e05d21
Make adding paths via nix-store --serve run in constant memory
It adds a new operation, cmdAddToStoreNar, that does the same thing as
the corresponding nix-daemon operation, i.e. call addToStore(). This
replaces cmdImportPaths, which has the major issue that it sends the
NAR first and the store path second, thus requiring us to store the
incoming NAR either in memory or on disk until we decide what to do
with it.

For example, this reduces the memory usage of

  $ nix copy --to 'ssh://localhost?remote-store=/tmp/nix' /nix/store/95cwv4q54dc6giaqv6q6p4r02ia2km35-blender-2.79

from 267 MiB to 12 MiB.

Probably fixes #1988.
2018-08-03 21:21:16 +02:00
..
dotgraph.cc Fix some random -Wconversion warnings 2018-05-02 13:56:34 +02:00
dotgraph.hh More of the same 2016-02-04 15:10:47 +01:00
local.mk Remove dependency on "curl" binary 2017-03-15 16:48:29 +01:00
nix-store.cc Make adding paths via nix-store --serve run in constant memory 2018-08-03 21:21:16 +02:00
xmlgraph.cc Move path info caching from BinaryCacheStore to Store 2016-04-19 18:52:53 +02:00
xmlgraph.hh More of the same 2016-02-04 15:10:47 +01:00