inline analysis and symbol reduction; emits smaller than 64 bytes marked inline
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
1e8b8cce0f
commit
eeda96d94a
35 changed files with 117 additions and 73 deletions
|
@ -27,6 +27,7 @@ impl Data {
|
|||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn active_requests(&self) -> OutgoingSendingIter<'_> {
|
||||
Box::new(
|
||||
self.servercurrentevent_data
|
||||
|
@ -35,6 +36,7 @@ impl Data {
|
|||
)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn active_requests_for<'a>(&'a self, destination: &Destination) -> SendingEventIter<'a> {
|
||||
let prefix = destination.get_prefix();
|
||||
Box::new(
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
mod appservice;
|
||||
mod data;
|
||||
pub mod resolve;
|
||||
mod resolve;
|
||||
mod send;
|
||||
mod sender;
|
||||
|
||||
|
@ -9,7 +9,7 @@ use std::{fmt::Debug, sync::Arc};
|
|||
use async_trait::async_trait;
|
||||
use conduit::{Error, Result};
|
||||
use data::Data;
|
||||
pub use resolve::FedDest;
|
||||
pub use resolve::{resolve_actual_dest, FedDest};
|
||||
use ruma::{
|
||||
api::{appservice::Registration, OutgoingRequest},
|
||||
OwnedServerName, OwnedUserId, RoomId, ServerName, UserId,
|
||||
|
|
|
@ -414,6 +414,7 @@ impl FedDest {
|
|||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn port(&self) -> Option<u16> {
|
||||
match &self {
|
||||
Self::Literal(addr) => Some(addr.port()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue