Skip to content

refactor(proto)!: Remove excessive Arc-wrapping#489

Open
matheus23 wants to merge 1 commit intomainfrom
matheus23/remove-excessive-arcs
Open

refactor(proto)!: Remove excessive Arc-wrapping#489
matheus23 wants to merge 1 commit intomainfrom
matheus23/remove-excessive-arcs

Conversation

@matheus23
Copy link
Member

Description

Removes the excessive wrapping of QuicClientConfig and QuicServerConfig being wrapped in Arcs when that's just not needed.

Breaking Changes

  • noq_proto::crypto::ClientConfig::start_session and noq_proto::crypto::ServerConfig::start_session now take &self instead of self: Arc<Self> as arguments

Notes & open questions

The plan is that this opens up some further future improvements that allow to e.g. set_alpn without needing to reconstruct the whole rustls::ServerConfig.

@matheus23 matheus23 self-assigned this Mar 9, 2026
@github-actions
Copy link

github-actions bot commented Mar 9, 2026

Documentation for this PR has been generated and is available at: https://n0-computer.github.io/noq/pr/489/docs/noq/

Last updated: 2026-03-09T16:13:42Z

@github-actions
Copy link

github-actions bot commented Mar 9, 2026

Performance Comparison Report

21c01e50e75cdf43b6678fc3df130f36fb1e23c4 - artifacts

Raw Benchmarks (localhost)

Scenario noq upstream Delta CPU (avg/max)
large-single 5681.5 Mbps 7778.9 Mbps -27.0% 96.9% / 108.0%
medium-concurrent 5365.1 Mbps 7915.0 Mbps -32.2% 95.0% / 104.0%
medium-single 3998.7 Mbps 4677.7 Mbps -14.5% 90.1% / 97.8%
small-concurrent 3814.0 Mbps 5181.5 Mbps -26.4% 91.2% / 98.9%
small-single 3587.2 Mbps 4733.5 Mbps -24.2% 95.5% / 107.0%

Netsim Benchmarks (network simulation)

Condition noq upstream Delta
ideal 3083.6 Mbps 4078.7 Mbps -24.4%
lan 782.4 Mbps 810.3 Mbps -3.4%
lossy 69.8 Mbps 55.9 Mbps +25.1%
wan 83.8 Mbps 83.8 Mbps ~0%

Summary

noq is 25.1% slower on average

@n0bot n0bot bot added this to iroh Mar 9, 2026
@github-project-automation github-project-automation bot moved this to 🚑 Needs Triage in iroh Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🚑 Needs Triage

Development

Successfully merging this pull request may close these issues.

1 participant