tvl-depot/tvix/nix-compat
edef 31d73cd443 refactor(nix-compat/nar/reader): reuse prev_name allocation
We reuse the prev_name allocation for Entry, instead of allocating and
returning a separate Vec.

We encode the `prev_name: None` case as an empty vector, since we don't
allow empty names anyway, and the sorting is equivalent.

Change-Id: I975b37ff873805f5ff099bc82128706891052247
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11607
Reviewed-by: Brian Olsen <me@griff.name>
Reviewed-by: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
2024-05-08 15:30:46 +00:00
..
benches fix(nix-compat/narinfo): unwrap in the benchmark 2023-10-28 17:11:22 +00:00
src refactor(nix-compat/nar/reader): reuse prev_name allocation 2024-05-08 15:30:46 +00:00
testdata feat(tvix/nix-compat): add narinfo parsing and serialisation 2023-10-27 16:08:06 +00:00
Cargo.toml chore(nix-compat): remove unused test-case and test-generator 2024-04-19 19:22:10 +00:00
default.nix refactor(tvix/nix-compat): reorganize wire and bytes 2024-04-13 10:09:35 +00:00