.. _optimization-techniques: Optimization Techniques ======================= The :ref:`optimization-guide` 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 :ref:`case-studies`. To find a technique by the symptom it addresses, see the :ref:`optimization-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. :doc:`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 (:doc:`transparent_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 (:doc:`direct_allocations`). .. toctree:: :maxdepth: 1 dedicated_stage_threads shared_memory_arenas transparent_region_arenas direct_allocations