Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[ty] Box large semantic index builders#26186

Merged
MichaReiser merged 1 commit into
mainfrom
micha/box-semantic-index-builders
Jun 21, 2026
Merged

[ty] Box large semantic index builders#26186
MichaReiser merged 1 commit into
mainfrom
micha/box-semantic-index-builders

Conversation

@MichaReiser

@MichaReiser MichaReiser commented Jun 21, 2026

Copy link
Copy Markdown
Member

Summary

Keep the large per-scope use-def builders boxed so outer index growth only moves pointers. This removes about 5.2 MB of allocation and copy churn on attrs without adding allocations for the smaller place-table builders.

Performance

This is 2-3% perf improvements on our benchmarks.

Test Plan

Testing: Passed ty_python_core tests, Clippy, and repository hooks.

@astral-sh-bot astral-sh-bot Bot added the ty Multi-file analysis & type inference label Jun 21, 2026
@astral-sh-bot

astral-sh-bot Bot commented Jun 21, 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.37%. The percentage of expected errors that received a diagnostic held steady at 89.00%. The number of fully passing files held steady at 94/134.

@astral-sh-bot

astral-sh-bot Bot commented Jun 21, 2026

Copy link
Copy Markdown

Memory usage report

Summary

Project Old New Diff Outcome
trio 78.59MB 78.60MB +0.01% (11.87kB)
flake8 31.36MB 31.36MB +0.02% (6.31kB)
prefect 524.25MB 524.25MB +0.00% (6.05kB)
sphinx 195.80MB 195.80MB +0.00% (2.22kB)

Significant changes

Click to expand detailed breakdown

trio

Name Old New Diff Outcome
parsed_module 15.04MB 15.05MB +0.08% (11.87kB)

flake8

Name Old New Diff Outcome
parsed_module 9.77MB 9.77MB +0.06% (6.31kB)

prefect

Name Old New Diff Outcome
parsed_module 19.36MB 19.36MB +0.03% (6.05kB)

sphinx

Name Old New Diff Outcome
parsed_module 18.36MB 18.36MB +0.01% (2.22kB)

@astral-sh-bot

astral-sh-bot Bot commented Jun 21, 2026

Copy link
Copy Markdown

ecosystem-analyzer results

No diagnostic changes detected ✅

Full report with detailed diff (timing results)

@MichaReiser MichaReiser force-pushed the micha/box-semantic-index-builders branch from be39a3c to b4d0b27 Compare June 21, 2026 11:24
@MichaReiser MichaReiser added the performance Potential performance improvement label Jun 21, 2026
@MichaReiser MichaReiser marked this pull request as ready for review June 21, 2026 11:37
@MichaReiser MichaReiser requested a review from a team as a code owner June 21, 2026 11:37
@astral-sh-bot astral-sh-bot Bot requested a review from charliermarsh June 21, 2026 11:37
@MichaReiser MichaReiser merged commit 3b480c4 into main Jun 21, 2026
60 checks passed
@MichaReiser MichaReiser deleted the micha/box-semantic-index-builders branch June 21, 2026 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance Potential performance improvement ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants