Expand description
Compact data structures for 8KB WASM cores
Optimized for agentic chip with 256 cores × 8KB each. Total budget: ~8KB per core for complete min-cut state.
Structs§
- BitSet256
- Bit-packed membership set (256 vertices = 32 bytes) Much smaller than RoaringBitmap for small vertex counts
- BitSet256
Iter - Compact
Adjacency - Compact adjacency list (fixed size, ~2KB)
- Compact
Core State - Memory budget breakdown for 8KB core:
- Compact
Edge - Compact edge representation (8 bytes)
- Compact
Witness - Compact witness (40 bytes total)
- Core
Result - Result communicated back from core (16 bytes)
Constants§
- MAX_
EDGES_ PER_ CORE - Maximum edges per core (reduced to fit in 8KB total) Budget breakdown:
- MAX_
VERTICES_ PER_ CORE - Maximum vertices per core (fits in 8KB budget)
Type Aliases§
- Compact
Edge Id - Compact edge ID (u16)
- Compact
Vertex Id - Compact vertex ID (u16 saves 6 bytes vs u64)