From eb75693a36262da310004ecc541ca3e3092029db Mon Sep 17 00:00:00 2001 From: ernisto Date: Fri, 11 Apr 2025 13:35:32 -0300 Subject: [PATCH] perf: we dont need check if `update_id` is higher than `higher_parent_update_id` --- src/graph.luau | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/graph.luau b/src/graph.luau index 84d75d4..3ab6fc7 100644 --- a/src/graph.luau +++ b/src/graph.luau @@ -194,9 +194,7 @@ function queue_children_for_update(node: SourceNode) if not child then break end if child.last_eval_update_id == update_id then child_index += 1; continue end - if update_id > child.higher_parent_update_id then - child.higher_parent_update_id = update_id - end + child.higher_parent_update_id = update_id queue_index += 1 update_queue[queue_index] = child