Expand description
Packfile management for efficient storage.
Packfiles bundle multiple objects together with delta compression, achieving 50-70% space savings for repositories with many similar objects.
Structs§
- Cancellation
Token - Cooperative cancellation shared by a caller and a repack operation.
- Encoded
Pack Subset - Pack
Builder - Pack builder for creating packfiles.
- Pack
Container Spec - Pack
Entry Header - Pack
Index - Pack index for fast object lookup.
- Pack
Logical Id - Root-spool-scoped identity of the logical objects in a pack.
- Pack
Manager - Format-only coordinator for loaded pack and index files.
- Pack
Object Record - Pack
Reader - Pack
Representation Hash - Hash of one finalized physical pack representation.
- Pack
Stats - Pack statistics.
- Repack
Context - Cooperative controls supplied to a storage-specific operation.
- Repack
Handle - Handle for cancellation and result collection.
- Repack
Inventory - Cheap storage facts used to decide whether a repack is worthwhile.
- Repack
Outcome - Storage-produced measurements, excluding scheduler-owned duration/reason.
- Repack
Policy - Configurable automatic repack thresholds.
- Repack
Report - Completed operation measurements.
- Repack
Resource Limits - Scheduler-wide resource limits.
- Repack
Scheduler - Bounded background scheduler shared by native and hosted repack payloads.
- Streaming
Pack Builder - Streaming pack builder. Held generic over the pack writer (
Filein production,Cursor<Vec<u8>>in tests).
Enums§
- Object
Type - Object type for pack entries.
- Pack
Object Id - Pack
Read Tier - Physical read tier for an indexed pack object.
- Repack
Error - Error returned by scheduling or executing a repack.
- Repack
Reason - The policy signal that caused a background repack.
- Repack
Schedule - Result of asking the scheduler to start work.
Constants§
- PACK_
CHECKSUM_ LEN - PACK_
LOGICAL_ ID_ CONTEXT - BLAKE3 derive-key context for the canonical logical pack inventory.
Traits§
- Load
Monitor - Host-load signal consulted at cooperative checkpoints.
- Repack
Operation - Storage-specific repack payload driven by the scheduler.
- Sync
Data - Fsync staged pack bytes after finalize flush (Wave 5 L7).
Functions§
- append_
container_ checksum - compress_
compact_ frame - Compress one compact metadata frame with the measured lineage-solid policy.
- compress_
pack_ payload - decode_
tagged_ entry_ header - decompress_
pack_ payload - encode_
tagged_ entry - encode_
tagged_ entry_ parts - has_
zstd_ magic - try_
decode_ tagged_ entry_ header - verify_
container - verify_
container_ layout - write_
container_ header