Cache parsed expressions

check_lazy_status and execute parsed the same expression twice per run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mcDandy
2026-10-18 12:55:00 +02:00
co-authored by Claude Opus 5.5
parent 977ce75c89
commit 70dee22a89
3 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -22,4 +22,4 @@ class ScriptTextInput(io.ComfyNode):
@classmethod
def execute(cls, script):
return (remove_dead_code(parse_expr(script)),)
return (remove_dead_code(parse_expr.__wrapped__(script)),)