Skip to content

refactor: defensive style & move code around#450

Merged
flub merged 1 commit intomainfrom
flub/refactors
Feb 23, 2026
Merged

refactor: defensive style & move code around#450
flub merged 1 commit intomainfrom
flub/refactors

Conversation

@flub
Copy link
Collaborator

@flub flub commented Feb 23, 2026

Description

Some refactors:

  • Move code around so that helpers structs come after the Connection,
    kind of more the style and keeps connection code more together.
  • Use some defensive coding in the spaces impls. Fix a few bugs
    detected by it

Breaking Changes

n/a

Notes & open questions

Split off from #444 even though that's still only draft.

Ugh, I guess given the fixes this should really be split in two again? 😭
Someone please just approve... 🥺

Some refactors:

- Move code around so that helpers structs come after the Connection,
  kind of more the style and keeps connection code more together.
- Use some defensive coding in the spaces impls. Fix a few bugs
  detected by it
@flub flub changed the title refactor: defensive styel & move code around refactor: defensive style & move code around Feb 23, 2026
@github-actions
Copy link

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

Last updated: 2026-02-23T13:29:40Z

@codecov-commenter
Copy link

Codecov Report

❌ Patch coverage is 95.23810% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.48%. Comparing base (5e6ee88) to head (f61fb02).

Files with missing lines Patch % Lines
quinn-proto/src/connection/mod.rs 0.00% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #450      +/-   ##
==========================================
+ Coverage   77.45%   77.48%   +0.03%     
==========================================
  Files          81       81              
  Lines       23411    23465      +54     
==========================================
+ Hits        18132    18181      +49     
- Misses       5279     5284       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@n0bot n0bot bot added this to iroh Feb 23, 2026
@github-project-automation github-project-automation bot moved this to 🚑 Needs Triage in iroh Feb 23, 2026
@github-actions
Copy link

Performance Comparison Report

f61fb024bbfbe70ff62fe6b76a9ddc7a7f9b2771 - artifacts

Raw Benchmarks (localhost)

Scenario iroh-quinn upstream Delta CPU (avg/max)
large-single 5441.5 Mbps 7775.5 Mbps -30.0% 92.7% / 97.4%
medium-concurrent 5515.6 Mbps 7816.7 Mbps -29.4% 93.2% / 97.8%
medium-single 3814.0 Mbps 4662.4 Mbps -18.2% 90.5% / 97.8%
small-concurrent 3714.9 Mbps 5182.1 Mbps -28.3% 93.3% / 103.0%
small-single 3366.6 Mbps 4760.5 Mbps -29.3% 89.7% / 96.7%

Netsim Benchmarks (network simulation)

Condition iroh-quinn upstream Delta
ideal N/A 4019.8 Mbps N/A
lan N/A 810.4 Mbps N/A
lossy N/A 55.9 Mbps N/A
wan N/A 83.8 Mbps N/A

Summary

iroh-quinn is 27.6% slower on average

@flub flub added this pull request to the merge queue Feb 23, 2026
Merged via the queue into main with commit 0696c83 Feb 23, 2026
36 checks passed
@flub flub deleted the flub/refactors branch February 23, 2026 14:28
@github-project-automation github-project-automation bot moved this from 🚑 Needs Triage to ✅ Done in iroh Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

3 participants