Skip to content

Backport "Fix #17577: scaladoc hangs with deep inheritance" to LTS #18991

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 21, 2023

Conversation

Kordyjan
Copy link
Contributor

Backports #17954 to the LTS branch.

PR submitted by the release tooling.
[skip ci]

This commit has a pair of fixes that bring the scaladoc build time for the repository mentioned in #17577 to a minute instead of hanging.

- Reimplement HierarchyGraph's `+` method in terms of `++` Previously, `++` was implemented in terms of `+`, but `+` called `distinct` resulting in poor performance. Now `distinct` is only called once for a `++` call.
- Get the distinct `LinkToType` values in `InheritanceInformationTransformer.apply`. Previously, `subtypes` could contain duplicates, causing redundant  calls to `getEdges`

[Cherry-picked 9859e89]
Base automatically changed from lts-17967 to release-3.3.2 November 21, 2023 11:17
@Kordyjan
Copy link
Contributor Author

@Kordyjan Kordyjan merged commit 6bfe99b into release-3.3.2 Nov 21, 2023
@Kordyjan Kordyjan deleted the lts-17954 branch November 21, 2023 11:17
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