From 52291c562d2657270efd598399533ae9db34e242 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Sun, 12 Nov 2023 20:56:57 +0100 Subject: [PATCH] reset_caches() back into prepare_netlist_structs() (no measurable slowdown) --- src/netlist.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/netlist.c b/src/netlist.c index 5ffc5134..e7e84cdd 100644 --- a/src/netlist.c +++ b/src/netlist.c @@ -1445,9 +1445,7 @@ int prepare_netlist_structs(int for_netl) dbg(1, "prepare_netlist_structs(): extraction: %s\n", xctx->sch[xctx->currsch]); - /* Don't reset caches systematically. Users should call 'xschem reset_caches' - * if they play with tcl variables that need to be updated into attributes */ - /* reset_caches(); */ /* update cached flags: necessary if some tcleval() is used for cached attrs */ + reset_caches(); /* update cached flags: necessary if some tcleval() is used for cached attrs */ set_modify(-2); /* to reset floater cached values */ /* delete instance pins spatial hash, wires spatial hash, node_hash, wires and inst nodes.*/