forked from square/dagger
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 PiperOrigin-RevId: 444957049
- Loading branch information
Showing
3 changed files
with
33 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters