From 137202325a94d9d2e2ea4611e828e91c4adb73a1 Mon Sep 17 00:00:00 2001 From: Oscar Gustafsson <oscar.gustafsson@liu.se> Date: Fri, 7 Feb 2025 14:25:25 +0100 Subject: [PATCH] Faster generation of next_id --- b_asic/signal_flow_graph.py | 1 - 1 file changed, 1 deletion(-) diff --git a/b_asic/signal_flow_graph.py b/b_asic/signal_flow_graph.py index c1ff7ee6..db482e57 100644 --- a/b_asic/signal_flow_graph.py +++ b/b_asic/signal_flow_graph.py @@ -68,7 +68,6 @@ class GraphIDGenerator: def next_id(self, type_name: TypeName, used_ids: MutableSet = set()) -> GraphID: """Get the next graph id for a certain graph id type.""" new_id = type_name + str(self._next_id_number[type_name]) - self._next_id_number[type_name] = 0 while new_id in used_ids: self._next_id_number[type_name] += 1 new_id = type_name + str(self._next_id_number[type_name]) -- GitLab