Skip to content

Commit

Permalink
Minor performance improvement with --useCquery (#181)
Browse files Browse the repository at this point in the history
Computation transitions is slow and it's not necessary when trying to
figure out list of compatible targets.
  • Loading branch information
tgeng authored Jun 5, 2023
1 parent 3098e27 commit e226c1c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ class BazelQueryService(
addAll(startupOptions)
if (useCquery) {
add("cquery")
add("--transitions=lite")
if (!outputCompatibleTargets) {
// There is no need to query the transitions when querying for compatible targets.
add("--transitions=lite")
}
} else {
add("query")
}
Expand Down

0 comments on commit e226c1c

Please sign in to comment.