From 2ac744f6628d107b3534177eeca5ef06f6668609 Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Sat, 13 May 2023 13:15:31 -0400 Subject: [PATCH] Print all custom node import times. --- nodes.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/nodes.py b/nodes.py index 28215127..f3b7da1a 100644 --- a/nodes.py +++ b/nodes.py @@ -1339,10 +1339,9 @@ def load_custom_nodes(): load_custom_node(module_path) node_import_times.append((time.time() - time_before, module_path)) - slow_nodes = list(filter(lambda a: a[0] > 1.0, node_import_times)) - if len(slow_nodes) > 0: + if len(node_import_times) > 0: print("\nImport times for custom nodes:") - for n in sorted(slow_nodes): + for n in sorted(node_import_times): print("{:6.1f} seconds to import:".format(n[0]), n[1]) print()