tvl-depot/tvix/nix-compat/src
Vincent Ambo 327548d2fd refactor(tvix/nix-compat): check presence with btree_map's entry API
Walking a btree_map twice is more expensive than copying a string,
especially because the cloning only happens in the (non-hot) error
path.

This fixes a clippy lint, so it's related to b/321.

Change-Id: I2ccfd0bc46792a45d277f47564e595b87107d8be
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9962
Autosubmit: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
Reviewed-by: flokli <flokli@flokli.de>
2023-11-05 20:28:37 +00:00
..
aterm feat(nix-compat/{aterm,derivation}): init parser 2023-10-16 12:23:00 +00:00
derivation refactor(tvix/nix-compat): check presence with btree_map's entry API 2023-11-05 20:28:37 +00:00
nar fix(nix-compat/nar/writer): use ByteSlice closer to call site 2023-10-27 17:07:06 +00:00
nixhash fix(tvix/nix-compat): don't box CAHash::Text 2023-10-27 12:18:23 +00:00
store_path refactor(tvix/nix-compat): remove unused imports 2023-11-05 12:20:19 +00:00
lib.rs feat(tvix/nix-compat): add narinfo parsing and serialisation 2023-10-27 16:08:06 +00:00
narinfo.rs fix(nix-compat/narinfo): don't allocate errors early 2023-10-28 17:11:22 +00:00
nixbase32.rs fix(nix-compat/nixbase32): mark encode_len/decode_len const 2023-11-04 16:29:48 +00:00