-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: no more channels for UDP send/recv (#1579)
## Description Do not use channels for the hot path of sending and receiving QUIC UDP packets. * Put `PeerMap` into a `Mutex` so that we can access it for the address remapping directly in the `AsyncUdpSocket` `poll_send/poll_recv` methods * `poll_recv` and `poll_send` the underlying UDP socket directly in `MagicSock as AsyncUdpSocket` and only forward Derp, Disco and Stun packages over channels ## Notes & open questions ## Change checklist - [ ] Self-review. - [ ] Documentation updates if relevant. - [ ] Tests if relevant. --------- Co-authored-by: dignifiedquire <me@dignifiedquire.com> Co-authored-by: Diva M <divma@protonmail.com>
- Loading branch information
1 parent
a93e89e
commit d6657bd
Showing
18 changed files
with
1,821 additions
and
1,294 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ members = [ | |
"iroh-net", | ||
"iroh-sync", | ||
"iroh-test", | ||
"iroh-net/bench" | ||
] | ||
resolver = "2" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[package] | ||
name = "iroh-net-bench" | ||
version = "0.1.0" | ||
edition = "2021" | ||
license = "MIT OR Apache-2.0" | ||
publish = false | ||
|
||
[dependencies] | ||
anyhow = "1.0.22" | ||
bytes = "1" | ||
hdrhistogram = { version = "7.2", default-features = false } | ||
iroh-net = { path = ".." } | ||
quinn = "0.10" | ||
rcgen = "0.11.1" | ||
rustls = { version = "0.21.0", default-features = false, features = ["quic"] } | ||
clap = { version = "4", features = ["derive"] } | ||
tokio = { version = "1.0.1", features = ["rt", "sync"] } | ||
tracing = "0.1.10" | ||
tracing-subscriber = { version = "0.3.0", default-features = false, features = ["env-filter", "fmt", "ansi", "time", "local-time"] } |
Oops, something went wrong.