From 0d88e8be9f831615dd050acad94bb5d00cd02adb Mon Sep 17 00:00:00 2001 From: Dennis Kobert Date: Mon, 24 Aug 2026 23:14:06 +0200 Subject: [PATCH] Inline status cell calls --- node-graph/libraries/core-types/src/node.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/node-graph/libraries/core-types/src/node.rs b/node-graph/libraries/core-types/src/node.rs index 6d18aa7554..49e3767295 100644 --- a/node-graph/libraries/core-types/src/node.rs +++ b/node-graph/libraries/core-types/src/node.rs @@ -478,10 +478,12 @@ impl StatusCell { } } + #[inline(always)] pub fn no_partial() -> Self { Self { no_partial: true, ..Self::new() } } + #[inline(always)] pub fn eval_input>(&self, input_index: usize, node: &N, input: &Input) -> Result { match node.eval(input) { GPoll::Final(value) => Ok(value), @@ -506,6 +508,7 @@ impl StatusCell { /// A new cell holding a copy of the accumulated status; the error stays in /// place, cloned rather than taken. + #[inline(always)] pub fn snapshot(&self) -> StatusCell { let error = self.error.take(); self.error.set(error.clone()); @@ -516,6 +519,7 @@ impl StatusCell { } } + #[inline(always)] pub fn finish(self, value: T) -> GPoll { match (self.error.take(), self.finality.get()) { (Some(error), _) => GPoll::Fallback(Box::new((value, error))), @@ -524,6 +528,7 @@ impl StatusCell { } } + #[inline(always)] pub fn merge(self, poll: GPoll) -> GPoll { match poll { GPoll::Final(value) => self.finish(value), @@ -554,6 +559,7 @@ impl<'a, N> LazyInput<'a, N> { Self { node, cell, input_index } } + #[inline(always)] pub fn eval(&self, ctx: &Input) -> Result where N: Node, @@ -563,6 +569,7 @@ impl<'a, N> LazyInput<'a, N> { /// The edge's composite extent, for kernels that split or shift indices /// over their sources. + #[inline(always)] pub fn extent(&self, ctx: &Input, at: Level) -> GPoll where N: Node,