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().
Showing
- Makefile 0 additions, 1 deletionMakefile
- src/libexpr/local.mk 1 addition, 1 deletionsrc/libexpr/local.mk
- src/libfetchers/local.mk 1 addition, 1 deletionsrc/libfetchers/local.mk
- src/libstore/binary-cache-store.cc 3 additions, 3 deletionssrc/libstore/binary-cache-store.cc
- src/libstore/local-store.cc 5 additions, 5 deletionssrc/libstore/local-store.cc
- src/libstore/local.mk 1 addition, 1 deletionsrc/libstore/local.mk
- src/libstore/nar-info-disk-cache.cc 3 additions, 3 deletionssrc/libstore/nar-info-disk-cache.cc
- src/libstore/nar-info.cc 2 additions, 2 deletionssrc/libstore/nar-info.cc
- src/libstore/path.cc 30 additions, 36 deletionssrc/libstore/path.cc
- src/libstore/path.hh 43 additions, 27 deletionssrc/libstore/path.hh
- src/libstore/remote-fs-accessor.cc 1 addition, 1 deletionsrc/libstore/remote-fs-accessor.cc
- src/libstore/store-api.cc 3 additions, 11 deletionssrc/libstore/store-api.cc
- src/libstore/store-api.hh 0 additions, 4 deletionssrc/libstore/store-api.hh
- src/libutil/local.mk 0 additions, 2 deletionssrc/libutil/local.mk
- src/libutil/rust-ffi.cc 2 additions, 0 deletionssrc/libutil/rust-ffi.cc
- src/libutil/rust-ffi.hh 2 additions, 0 deletionssrc/libutil/rust-ffi.hh
- src/nix/local.mk 1 addition, 1 deletionsrc/nix/local.mk
- src/nix/make-content-addressable.cc 2 additions, 2 deletionssrc/nix/make-content-addressable.cc
- src/nix/verify.cc 1 addition, 1 deletionsrc/nix/verify.cc
- src/nix/why-depends.cc 5 additions, 5 deletionssrc/nix/why-depends.cc
Loading
Please register or sign in to comment