John Ericson
b3d91239ae
Make ValidPathInfo
have plain StorePathSet
references like before
...
This change can wait for another PR.
2023-01-14 16:42:03 -05:00
John Ericson
46e942ff9e
Do big rename to clean up code
...
- `PathReferences` -> `References`
- `PathReferences<StorePath>` -> `StoreReference`
- `references` -> `others`
- `hasSelfReference` -> `self`
And get rid of silly subclassing
2023-01-06 15:36:05 -05:00
John Ericson
f4f3203aa7
Merge remote-tracking branch 'upstream/master' into path-info
2021-09-30 22:41:53 +00:00
Eelco Dolstra
fe1f34fa60
Low-latency closure copy
...
This adds a new store operation 'addMultipleToStore' that reads a
number of NARs and ValidPathInfos from a Source, allowing any number
of store paths to be copied in a single call. This is much faster on
high-latency links when copying a lot of small files, like .drv
closures.
For example, on a connection with an 50 ms delay:
Before:
$ nix copy --to 'unix:///tmp/proxy-socket?root=/tmp/dest-chroot' \
/nix/store/90jjw94xiyg5drj70whm9yll6xjj0ca9-hello-2.10.drv \
--derivation --no-check-sigs
real 0m57.868s
user 0m0.103s
sys 0m0.056s
After:
real 0m0.690s
user 0m0.017s
sys 0m0.011s
2021-07-26 13:31:09 +02:00
John Ericson
ca0994819d
Merge remote-tracking branch 'upstream/master' into path-info
2021-02-25 21:51:05 +00:00
Eelco Dolstra
e8c379555f
LocalStore: Get rid of recursive_mutex
2020-11-03 14:45:24 +01:00
John Ericson
f8d562c0a7
Use PathReferences more widely
2020-10-07 15:00:10 +00:00
John Ericson
45ca7c3e4b
Merge remote-tracking branch 'upstream/master' into path-info
2020-09-23 22:35:41 +00:00
John Ericson
e89b5bd0bf
Minimize the usage of Hash::dummy
2020-08-06 18:31:48 +00:00
Carlo Nucera
1ad6394b33
Add Hash::dummy to signal default value
...
We did this in the same spirit of the dummy value that's present in
libstore/path.hh
2020-08-05 15:11:49 -04:00
Carlo Nucera
1d71028f4d
Remove optionality in ValidPathInfo::narInfo
2020-08-05 14:42:48 -04:00
John Ericson
36dd7920a2
Merge remote-tracking branch 'upstream/master' into path-info
2020-08-04 23:16:18 +00:00
John Ericson
062533f7cd
Merge remote-tracking branch 'upstream/master' into path-info-header
2020-08-03 21:02:28 +00:00
John Ericson
0e9e599b00
Merge remote-tracking branch 'upstream/master' into path-info
2020-08-01 00:06:24 +00:00
John Ericson
a9c0ea30bf
Backport fix from #3754 branch
2020-06-29 17:59:58 +00:00
John Ericson
71e4c9c505
WIP: store separate hasValidPath
bool
2020-06-25 17:53:31 +00:00
John Ericson
1722ae6ece
Pull out PathReferences super class
2020-06-25 17:49:22 +00:00
John Ericson
d92d4f85a5
Move ValidPathInfo to its own header
2020-06-25 17:48:49 +00:00