mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 18:25:30 +00:00
aquatic_ws: add inline markers to functions that will probably be hot
This commit is contained in:
parent
3321f40697
commit
6c26331ffb
4 changed files with 25 additions and 0 deletions
|
|
@ -69,6 +69,7 @@ pub struct TorrentData {
|
|||
|
||||
|
||||
impl Default for TorrentData {
|
||||
#[inline]
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
peers: IndexMap::new(),
|
||||
|
|
@ -109,6 +110,8 @@ impl OutMessageSender {
|
|||
pub fn new(senders: Vec<Sender<(ConnectionMeta, OutMessage)>>) -> Self {
|
||||
Self(senders)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn send(
|
||||
&self,
|
||||
meta: ConnectionMeta,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue