Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 2.03 KB

File metadata and controls

29 lines (23 loc) · 2.03 KB

Examples Overview

Runnable examples live under src/examples/java/io/github/elevateddev/lattice/examples/. Each is public static void main and uses only the public API.

Example What it shows
PreallocatedSourceSinkExample Reusing payloads through a preallocated source and slab pool.
FusedLinearPipelineExample Linear chain that the compiler fuses into a single owner thread.
RoutingJoinExample Broadcast fan-out plus stamped join with explicit policy.
MetricsDiagnosticsExample Reading graph / stage / edge / placement metrics at runtime.
CompilationReportExample Printing fusion, source specialization, and fallback decisions.
BenchmarkStyleFastPathExample The hot-path discipline used by the JMH suite.
OrdersPipelineExample Minimal validate -> sink order pipeline with wait, overflow, and memory knobs.

Running

./gradlew runOrdersPipelineExample

Other example tasks follow the same name pattern, for example runFusedLinearPipelineExample, runRoutingJoinExample, runMetricsDiagnosticsExample, and runCompilationReportExample.

The examples deliberately use the same hot-path discipline as the JMH benchmarks (no logging, no allocation in stage bodies, hot-counter flags disabled) so they are useful as starting templates, not just demos.