Skip to main content

Module pack

Module pack 

Source
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§

EncodedPackSubset
PackBuilder
Pack builder for creating packfiles.
PackContainerSpec
PackEntryHeader
PackIndex
Pack index for fast object lookup.
PackManager
Format-only coordinator for loaded pack and index files.
PackObjectRecord
PackReader
PackStats
Pack statistics.
StreamingPackBuilder
Streaming pack builder. Held generic over the pack writer (File in production, Cursor<Vec<u8>> in tests).

Enums§

ObjectType
Object type for pack entries.
PackObjectId

Constants§

PACK_CHECKSUM_LEN

Traits§

SyncData
Fsync staged pack bytes after finalize flush (Wave 5 L7).

Functions§

append_container_checksum
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
write_container_header