signorm: discard newly_driven capacity for performance

This commit is contained in:
Emil J. Tywoniak
2026-07-20 12:27:18 +02:00
parent 4799869e5b
commit 3bfc7228f3
+6
View File
@@ -235,6 +235,12 @@ struct RTLIL::SigNormIndex
cell->setPort(port, tmp);
}
}
// newly_driven is now empty but retains its peak capacity. A later
// incremental connect refills it with a handful of bits, yet the next
// rehash would be sized to that stale peak capacity. Release the
// storage so subsequent small batches stay small.
pool<SigBit>().swap(newly_driven);
}
void restore_connections() {