diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-06-16 14:16:39 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-06-16 14:28:41 +0200 |
commit | 759947bf72c134592f0ce23d385e48095bd0a301 (patch) | |
tree | 98868cbafb2baa1d369cf2a1464e9fa4805ab3a7 /src/libfetchers | |
parent | 72e17290d457a8e911f126d21b74c315b034189d (diff) |
StorePath: Rewrite in C++
On nix-env -qa -f '<nixpkgs>', this reduces maximum RSS by 20970 KiB
and runtime by 0.8%. This is mostly because we're not parsing the hash
part as a hash anymore (just validating that it consists of base-32
characters).
Also, replace storePathToHash() by StorePath::hashPart().
Diffstat (limited to 'src/libfetchers')
-rw-r--r-- | src/libfetchers/local.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libfetchers/local.mk b/src/libfetchers/local.mk index d7143d8a6..cfd705e22 100644 --- a/src/libfetchers/local.mk +++ b/src/libfetchers/local.mk @@ -8,4 +8,4 @@ libfetchers_SOURCES := $(wildcard $(d)/*.cc) libfetchers_CXXFLAGS += -I src/libutil -I src/libstore -libfetchers_LIBS = libutil libstore libnixrust +libfetchers_LIBS = libutil libstore |