Skip to content

Speed up phase_zinc_depscheck - #119

Merged
jadenPete merged 1 commit into
lucid-masterfrom
jpeterson-speed-up-scaladepscheck-analysis
Sep 14, 2026
Merged

jadenPete merged 1 commit into
lucid-masterfrom
jpeterson-speed-up-scaladepscheck-analysis

Conversation

@jadenPete

Copy link
Copy Markdown

Previously, this phase ran _add_args_for_depscheck_labeled_group (which calls Args#add) for every transitive compile JAR of every Scala target in the build graph.

This is far less efficient than calling Args#add_all once. We used to do this, but stopped doing so in 61ccf28 because Bazel changed how labels are formatted (canonical vs. apparent) in different contexts.

This change preserves that bug fix, but fixes the inefficiency of the implementation.

Comment thread rules/private/phases/phase_zinc_depscheck.bzl Outdated

@jjudd jjudd left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I think there's a comment that could use some editing, but otherwise no concerns.

Previously, this phase ran `_add_args_for_depscheck_labeled_group`
(which calls `Args#add`) for every transitive compile JAR of every
Scala target in the build graph.

This is far less efficient than calling `Args#add_all` once. We used to
do this, but stopped doing so in
`61ccf28f04309107f4d5b9a85d2ba883996d68f1` because Bazel changed how
labels are formatted (canonical vs. apparent)
in different contexts.

This change preserves that bug fix, but fixes the inefficiency of the
implementation.
@jadenPete
jadenPete force-pushed the jpeterson-speed-up-scaladepscheck-analysis branch from 77ffb02 to 242c930 Compare September 14, 2026 18:38
@jadenPete
jadenPete merged commit 172fb61 into lucid-master Sep 14, 2026
1 check passed
@jadenPete
jadenPete deleted the jpeterson-speed-up-scaladepscheck-analysis branch September 14, 2026 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants