Skip to content

[ty] Parallelize subtype hierarchy search - #26875

Merged
MichaReiser merged 1 commit into
mainfrom
micha/parallelize-ty-subtype-hierarchy
Jul 16, 2026
Merged

[ty] Parallelize subtype hierarchy search#26875
MichaReiser merged 1 commit into
mainfrom
micha/parallelize-ty-subtype-hierarchy

Conversation

@MichaReiser

@MichaReiser MichaReiser commented Jul 16, 2026

Copy link
Copy Markdown
Member

Summary

Parallelize subtype-hierarchy discovery across available modules while keeping semantic filtering and reachability checks unchanged.

Test Plan

Testing: Focused IDE and language-server coverage passes, and Home Assistant cold subtype lookup improved roughly 7× with consistent results.

Rayon threads Cold Warm
1 11.14 s 99 ms
8 2.47 s 43 ms
16 1.83 s 51 ms
64 1.50–1.61 s 132–144 ms

@astral-sh-bot astral-sh-bot Bot added the ty Multi-file analysis & type inference label Jul 16, 2026
@MichaReiser MichaReiser added performance Potential performance improvement server Related to the LSP server labels Jul 16, 2026
@astral-sh-bot

astral-sh-bot Bot commented Jul 16, 2026

Copy link
Copy Markdown

Typing conformance results

No changes detected ✅

Current numbers
The percentage of diagnostics emitted that were expected errors held steady at 94.68%. The percentage of expected errors that received a diagnostic held steady at 90.23%. The number of fully passing files held steady at 97/134.

@MichaReiser
MichaReiser marked this pull request as ready for review July 16, 2026 06:41
@MichaReiser
MichaReiser requested review from a team as code owners July 16, 2026 06:41
@astral-sh-bot
astral-sh-bot Bot requested a review from dcreager July 16, 2026 06:41
@astral-sh-bot

astral-sh-bot Bot commented Jul 16, 2026

Copy link
Copy Markdown

Memory usage report

Memory usage unchanged ✅

@astral-sh-bot

astral-sh-bot Bot commented Jul 16, 2026

Copy link
Copy Markdown

ecosystem-analyzer results

No diagnostic changes detected ✅

Flaky changes detected. This PR summary excludes flaky changes; see the HTML report for details.

Full report with detailed diff (timing results)

@MichaReiser
MichaReiser merged commit 87fc38c into main Jul 16, 2026
88 of 117 checks passed
@MichaReiser
MichaReiser deleted the micha/parallelize-ty-subtype-hierarchy branch July 16, 2026 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance Potential performance improvement server Related to the LSP server ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant