Ran
|
Jobs
1
|
Files
832
|
Run time
2min
|
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
Lines | Coverage | ∆ | File |
---|---|---|---|
6 |
92.11 |
-0.25% | crates/qasm2/src/lex.rs |
6 |
97.15 |
0.46% | crates/qasm2/src/parse.rs |
ID | Job ID | Ran | Files | Coverage | |
---|---|---|---|---|---|
1 | 9022924711.1 | 832 |
89.64 |
GitHub Action Run |
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|