Skip to main content

Module segment

Module segment 

Source
Expand description

Segment encode/decode โ€” the immutable unit of storage.

Format spec: docs/SEGMENTS.md. Everything is sorted the way it is read: forward by (src, label, dst), reverse by (dst, label, src), keys by bytes. The v1 reader decodes the whole file into memory โ€” that decoded form is the cache tier.

Structsยง

Segment
A decoded segment. Immutable once built; lookups are binary searches.