Skip to main content

Module routing

Module routing 

Source
Expand description

Pre-computed routing table for O(1) hot path dispatch.

The RoutingTable is built once during DAG finalization (Ring 2) and provides O(1) lookups during event processing (Ring 0). Each RoutingEntry is cache-line aligned (64 bytes) to avoid false sharing.

§Index Formula

index = node_id * MAX_PORTS + port

For most nodes, port = 0 (single output). Multi-output operators use separate ports for distinct output streams.

Structs§

RoutingEntry
A cache-line aligned routing entry for a (node, port) pair.
RoutingTable
Pre-computed routing table for O(1) DAG event dispatch.

Constants§

MAX_PORTS
Maximum output ports per node.