snix/tvix/castore/src/directoryservice
Florian Klink 96832c0411 feat(tvix/castore): add Directory::try_from_iter()
This provides a batched variant to construct a Directory, which reuses
the previously calculated size.

Checking and inserting code is factored out into a check_insert_node
function, taking the current size as a parameter and returning the new
size.

Change-Id: Ia6c2970a0c12181b7c40e63cf7ce8c93298ea37c
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12225
Autosubmit: flokli <flokli@flokli.de>
Reviewed-by: edef <edef@edef.eu>
Tested-by: BuildkiteCI
2024-08-18 16:49:58 +00:00
..
tests feat(tvix/castore): add Directory::try_from_iter() 2024-08-18 16:49:58 +00:00
bigtable.rs refactor(tvix/castore): use Directory struct separate from proto one 2024-08-13 12:17:01 +00:00
combinators.rs refactor(tvix/castore): use Directory struct separate from proto one 2024-08-13 12:17:01 +00:00
directory_graph.rs feat(tvix/castore): add Directory::try_from_iter() 2024-08-18 16:49:58 +00:00
from_addr.rs feat(tvix/castore): add RedbDirectoryService 2024-08-01 13:20:01 +00:00
grpc.rs refactor(tvix/castore): remove name from Nodes 2024-08-17 09:45:58 +00:00
memory.rs refactor(tvix/castore): use Directory struct separate from proto one 2024-08-13 12:17:01 +00:00
mod.rs refactor(tvix/castore): move *Node and Directory to crate root 2024-08-13 18:39:49 +00:00
object_store.rs refactor(tvix/castore): drop {Directory,File,Symlink}Node 2024-08-17 09:46:01 +00:00
order_validator.rs refactor(tvix/castore): drop {Directory,File,Symlink}Node 2024-08-17 09:46:01 +00:00
redb.rs refactor(tvix/castore): use Directory struct separate from proto one 2024-08-13 12:17:01 +00:00
simple_putter.rs refactor(tvix/castore): use Directory struct separate from proto one 2024-08-13 12:17:01 +00:00
sled.rs refactor(tvix/castore): use Directory struct separate from proto one 2024-08-13 12:17:01 +00:00
traverse.rs refactor(tvix/castore): add into_nodes(), implement consuming proto conv 2024-08-17 15:59:10 +00:00
utils.rs refactor(tvix/castore): drop {Directory,File,Symlink}Node 2024-08-17 09:46:01 +00:00