Skip to content

Conversation

@Mark-Simulacrum
Copy link
Collaborator

Release Summary:

  • opt(s2n-quic-dc): only read-lock once in happy path

Resolved issues:

n/a

Description of changes:

This removes one of two read locks taken on the path secret map within handshake_with_entry, which is called for each outbound stream. In practice the double locking should be fairly cheap (just an atomic increment most of the time), but it's still a contended cache line so reducing operations on it should help.

Call-outs:

n/a

Testing:

Exercised by existing tests. Purely a (probably theoretical) performance optimization.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

This removes one of two read locks taken on the path secret map within
handshake_with_entry, which is called for each outbound stream. In
practice the double locking should be fairly cheap (just an atomic
increment most of the time), but it's still a contended cache line so
reducing operations on it should help.
@Mark-Simulacrum Mark-Simulacrum marked this pull request as ready for review October 20, 2025 20:56
@Mark-Simulacrum Mark-Simulacrum requested a review from a team as a code owner October 20, 2025 20:56
@Mark-Simulacrum Mark-Simulacrum merged commit 6aa5933 into aws:main Oct 21, 2025
336 of 340 checks passed
@Mark-Simulacrum Mark-Simulacrum deleted the reduce-locking branch October 21, 2025 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants