mirror of
https://github.com/YosysHQ/yosys
synced 2026-07-15 03:35:40 +00:00
signorm: discard newly_driven capacity for performance
This commit is contained in:
parent
d974527ab4
commit
1b7daaae2e
1 changed files with 6 additions and 0 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue