aquatic_ws: add inline markers to functions that will probably be hot

This commit is contained in:
Joakim Frostegård 2020-05-14 00:25:31 +02:00
parent 3321f40697
commit 6c26331ffb
4 changed files with 25 additions and 0 deletions

View file

@ -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,