Skip to content

perf(build): train the upstream-TLS path in the PGO profile (v2 training shape) #973

Description

@membphis

Deferred from #967 (2026-08-13 scenario review, option B).

The v1 PGO training matrix drives the gateway against a plaintext local mock, so the TLS client paths (handshake, record encrypt/decrypt on every upstream byte) stay untrained and are laid out as cold code. Production upstreams are HTTPS, making this the largest known divergence between the training profile and real traffic.

What v2 needs:

Rejected for v1 because the trainer would lose its zero-dependency property and the benefit cannot be measured on current rigs.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Long-tail integrations — backlogenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions