Repo Added
|
Files
913
|
Badge
Embed ▾
README BADGES
|
github
Fix runtime scaling of StarPreRouting pass (#12376) This commit fixes a runtime performance scaling issue with the new StarPreRouting pass. If there are any stars identified by the pass when the pass goes to pre-route those star connectivity blocks it specifies a custom lexicographical topological sort key to ensure the stars are kept together in the sort. However the mechanism by which this sort key was generated scaled quadratically with the number of DAG nodes in the identified stars. This ended up being a large runtime performance bottleneck. This commit fixes this issue by pre-computing the sort key for all nodes in the stars and putting that in a dictionary so that when we call rustworkx to perform the topological sort the sort key callback does not become the bottleneck for the entire pass. (cherry picked from commit 4a6c57044)
2 of 2 new or added lines in 1 file covered. (100.0%)
12 existing lines in 2 files now uncovered.62249 of 69447 relevant lines covered (89.64%)
233131.92 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|