signorm: discard newly_driven capacity for performance

This commit is contained in:
Emil J. Tywoniak 2026-06-20 18:09:10 +02:00
parent d974527ab4
commit 1b7daaae2e
1 changed files with 6 additions and 0 deletions

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() {