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:
Jason Volk 2024-07-03 20:06:43 +00:00
parent 1e8b8cce0f
commit eeda96d94a
35 changed files with 117 additions and 73 deletions

View file

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

View file

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

View file

@ -414,6 +414,7 @@ impl FedDest {
}
}
#[inline]
fn port(&self) -> Option<u16> {
match &self {
Self::Literal(addr) => Some(addr.port()),