diff --git a/raphtory/src/core/storage/timeindex.rs b/raphtory/src/core/storage/timeindex.rs index d2473b49ac..f673eb2611 100644 --- a/raphtory/src/core/storage/timeindex.rs +++ b/raphtory/src/core/storage/timeindex.rs @@ -240,6 +240,7 @@ impl<'a, T: AsTime, Ops: TimeIndexOps, V: AsRef> + Send = LayeredTimeIndexWindow<'b, Ops::RangeType<'b>> where Self: 'b; + #[inline(always)] fn active(&self, w: Range) -> bool { self.view.as_ref().iter().any(|t| t.active(w.clone())) } @@ -425,6 +426,7 @@ where type IndexType = T; type RangeType<'a> = TimeIndexWindow<'a, T> where Self: 'a; + #[inline(always)] fn active(&self, w: Range) -> bool { match self { TimeIndexWindow::Empty => false, @@ -509,6 +511,7 @@ impl<'a, Ops: TimeIndexOps + 'a> TimeIndexOps for LayeredTimeIndexWindow<'a, Ops type IndexType = Ops::IndexType; type RangeType<'b> = LayeredTimeIndexWindow<'b, Ops::RangeType<'b>> where Self: 'b; + #[inline(always)] fn active(&self, w: Range) -> bool { self.timeindex.iter().any(|t| t.active(w.clone())) } diff --git a/raphtory/src/db/api/storage/edges/edge_storage_ops.rs b/raphtory/src/db/api/storage/edges/edge_storage_ops.rs index ca3b1701ca..f1098f7149 100644 --- a/raphtory/src/db/api/storage/edges/edge_storage_ops.rs +++ b/raphtory/src/db/api/storage/edges/edge_storage_ops.rs @@ -42,6 +42,7 @@ impl<'a> TimeIndexOps for TimeIndexRef<'a> { type IndexType = TimeIndexEntry; type RangeType<'b> = TimeIndexRef<'b> where Self: 'b; + #[inline(always)] fn active(&self, w: Range) -> bool { match self { TimeIndexRef::Ref(t) => t.active(w), diff --git a/raphtory/src/db/api/storage/nodes/node_entry.rs b/raphtory/src/db/api/storage/nodes/node_entry.rs index d2dcf40cfa..28d6c6f279 100644 --- a/raphtory/src/db/api/storage/nodes/node_entry.rs +++ b/raphtory/src/db/api/storage/nodes/node_entry.rs @@ -77,6 +77,7 @@ macro_rules! for_all_iter { } impl<'a> NodeStorageEntry<'a> { + #[inline] pub fn as_ref(&self) -> NodeStorageRef { match self { NodeStorageEntry::Mem(entry) => NodeStorageRef::Mem(entry), diff --git a/raphtory/src/db/api/view/internal/core_ops.rs b/raphtory/src/db/api/view/internal/core_ops.rs index 5b2f313f43..09a01f3769 100644 --- a/raphtory/src/db/api/view/internal/core_ops.rs +++ b/raphtory/src/db/api/view/internal/core_ops.rs @@ -382,6 +382,7 @@ impl<'b> TimeIndexOps for NodeAdditions<'b> { type IndexType = i64; type RangeType<'a> = NodeAdditions<'a> where Self: 'a; + #[inline] fn active(&self, w: Range) -> bool { match self { NodeAdditions::Mem(index) => index.active_t(w),