Skip to main content

Module types

Module types 

Source
Expand description

Core data types for DX format

This module defines the core value types for the DX machine format (binary). The machine format is optimized for zero-copy deserialization and runtime performance.

§Format Comparison

DX provides two serialization formats:

FormatTypeUse CasePerformance
MachineDxValueBinary, zero-copy, runtimeFastest parsing
LLMDxLlmValueText, token-efficient, LLM context73%+ token savings

§When to Use This Module

Use DxValue and the machine format when:

  • You need maximum parsing and serialization performance
  • You’re working with binary data or network protocols
  • You want zero-copy deserialization for large datasets
  • You’re building runtime data structures

Use DxLlmValue when:

  • You’re preparing data for LLM context windows
  • You need human-readable output
  • Token efficiency is more important than raw speed

§Thread Safety

All types in this module implement Send + Sync and can be safely shared between threads. See the compile-time assertions at the bottom of this module.

Structs§

DxArray
A DX array (inline or vertical)
DxObject
A DX object (key-value pairs)
DxTable
A table with schema-defined columns

Enums§

DxValue
The core value type for the DX machine format (binary, zero-copy).