snix/tvix/nix-compat/src/nar
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
..
reader refactor(nix-compat/nar/reader): reuse prev_name allocation 2024-05-08 15:30:46 +00:00
tests feat(tvix/nix-compat/nar/reader): add tests 2023-10-18 12:31:57 +00:00
wire feat(nix-compat/nar/reader): async support 2024-05-04 21:45:39 +00:00
writer refactor(tvix/nix-compat): move nar writer to tokio 2024-04-13 10:09:35 +00:00
mod.rs fix(nix-compat/wire/bytes/reader): always read trailer tag data 2024-05-08 04:44:01 +00:00