Skip to main content

Module crdt_compress

Module crdt_compress 

Source
Expand description

CRDT state compression for Loro deltas.

CRDT operations have a specific data signature:

  • Lamport timestamps: monotonically increasing → Delta → FastLanes
  • Actor IDs: purely entropic, but few unique actors → dictionary dedup
  • Content (text edits, JSON): contiguous → RLE + FSST for strings

This module compresses CRDT operation batches for:

  • Sync bandwidth reduction (Pattern B)
  • Long-term storage efficiency (Pattern C)

Structs§

CrdtOp
A CRDT operation for compression.

Functions§

decode
Decode compressed CRDT operations.
encode
Compressed CRDT operation batch.