Skip to content

Fix O(N^2) performance issue when determining declaration order.#3372

Open
copybara-service[bot] wants to merge 1 commit intomasterfrom
test_444923305
Open

Fix O(N^2) performance issue when determining declaration order.#3372
copybara-service[bot] wants to merge 1 commit intomasterfrom
test_444923305

Conversation

@copybara-service
Copy link
Copy Markdown

Fix O(N^2) performance issue when determining declaration order.

Note: This CL fixes the issue for InjectionSiteFactory, but I ended up just inlining the last remaining (unfixed) usage into DiagnosticMessageGenerator.

Looks like there's a number of similar comparators within DiagnosticMessageGenerator, which we may want to eventually look into fixing them all at some point. On the other hand, the DiagnosticMessageGenerator only runs when there's errors so it's likely not as big of an issue.

RELNOTES=N/A

Note: This CL fixes the issue for `InjectionSiteFactory`, but I ended up just inlining the last remaining (unfixed) usage into `DiagnosticMessageGenerator`.

Looks like there's a number of similar comparators within `DiagnosticMessageGenerator`, which we may want to eventually look into fixing them all at some point. On the other hand, the `DiagnosticMessageGenerator` only runs when there's errors so it's likely not as big of an issue.

RELNOTES=N/A
PiperOrigin-RevId: 444923305
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.

1 participant