Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains few optimizations related to BFS search:
setBfsInQueue(BfsIndex index, bool value)
got replaced by two functionssetBfsInQueue(BfsIndex index)
andclrBfsInQueue(BfsIndex index)
. This removes the need for checking the set/clear argument.Map
is used instead ofUnorderedMap
forArrivalMap
. SinceMap
orders keys searching is quicker.Assessment of introduced changes was done by running OpenROAD-flow-scripts CTS stage (multiple runs) on BlackParrot design with nangate45 PDK locally on an Intel(R) i7-8700 CPU @ 3.20GHz machine. Prior to the modifications the stage took about 248.4 seconds whereas with the modifications around 243.6 seconds