File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,14 +21,21 @@ High-frequency sensor streams generate massive data volumes with strict latency
2121** Traditional vs Span/Memory Pipeline**
2222``` mermaid
2323flowchart TD
24- A[Sensor Hardware Buffer] --> B[Traditional: Copy to new float[]]
25- B --> C[GC Pressure + Allocations]
26- C --> D[Preprocessing]
27- D --> E[ONNX Tensor]
28-
29- F[Sensor Hardware Buffer] --> G[Span<T> / Memory<T> View]
30- G --> H[Zero-Copy Preprocess + SIMD]
31- H --> I[Direct Tensor Creation]
24+ subgraph Traditional ["Traditional Approach"]
25+ A[Sensor Hardware Buffer]
26+ A --> B["Copy to new float[]"]
27+ B --> C["GC Pressure + Allocations"]
28+ C --> D[Preprocessing]
29+ D --> E[ONNX Tensor]
30+ end
31+
32+ subgraph Optimized ["Optimized Zero-Copy Approach"]
33+ F[Sensor Hardware Buffer]
34+ F --> G["Span T / Memory T View"]
35+ G --> H["Zero-Copy Preprocess + SIMD"]
36+ H --> I["Direct Tensor Creation"]
37+ end
38+
3239 style G fill:#90EE90
3340 style H fill:#90EE90
3441```
You can’t perform that action at this time.
0 commit comments