Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(relay): remove heap-allocations from hotpath #4457

Merged
merged 15 commits into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions rust/relay/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ trackable = "1.3.0"
socket2 = "0.5.6"
backoff = "0.4"
http-health-check = { workspace = true }
mio = "0.8.11"

[dev-dependencies]
difference = "2.0.0"
Expand Down
111 changes: 0 additions & 111 deletions rust/relay/src/allocation.rs

This file was deleted.

9 changes: 3 additions & 6 deletions rust/relay/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
mod allocation;
mod auth;
mod net_ext;
mod server;
mod sleep;
mod udp_socket;

#[cfg(feature = "proptest")]
pub mod proptest;
pub mod sockets;

pub use allocation::Allocation;
pub use net_ext::IpAddrExt;
pub use server::{
Allocate, AllocationId, Attribute, Binding, ChannelBind, ChannelData, ClientMessage, Command,
CreatePermission, PeerToClient, Refresh, Server,
Allocate, AllocationPort, Attribute, Binding, ChannelBind, ChannelData, ClientMessage, Command,
CreatePermission, Refresh, Server,
};
pub use sleep::Sleep;
pub use stun_codec::rfc8656::attributes::AddressFamily;
pub use udp_socket::UdpSocket;

use std::{
fmt,
Expand Down
Loading
Loading