Open uselessgoddess opened 2 years ago
Add #[inline] attribute to relevant places
#[inline]
fn try_get_link(&self, index: T) -> Result<Link<T>, Error<T>> { self.get_link(index).ok_or(Error::NotExists(index)) }
#[inline(always)]
pub fn len(&self) -> usize { self.0.len() }
#[cfg_attr(feature = "inline-more", inline)]
// from united/store.rs:194 fn is_unused(&self, link: T) -> bool { // impl . . . }
Add
#[inline]
attribute to relevant places#[inline]
– any obvious functions:#[inline(always)]
– any hard delegations:#[cfg_attr(feature = "inline-more", inline)]
– some questionable or rarely used or internal functions: