Optimization TechniquesΒΆ

The Optimization Workflow section describes how to measure the pipeline, find the bottleneck, and resolve it. This section collects pages about individual techniques that you can apply once the measurements point to a specific cost. Each page explains when the technique helps, how to use it, and what it costs.

For investigations of specific production pipelines, see Case Studies. To find a technique by the symptom it addresses, see the Knowledge Base.

Shared-memory arenas let processes reuse transport storage. Choose the page based on where the bytes are produced and who owns the storage:

  • For a subprocess iterable, compare pool-backed views with ring-buffer copy-out. Shared-memory arenas covers sizing, lifetime, and optional pinning for GPU transfer.

  • For a process region in a pipeline, pass caller-owned arenas at the input or output boundary to change transport without rewriting the stage (Explicit caller-owned process-region arenas).

  • If a stage can write into an output buffer, direct allocation can also remove the copy from a private result into the arena. It has a separate reservation and ticket lifecycle (Direct allocations for collation).