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

Skip to content

[ty] Store cumulative binding end offsets#25913

Merged
MichaReiser merged 1 commit into
mainfrom
micha/ty-compact-binding-offsets
Jun 13, 2026
Merged

[ty] Store cumulative binding end offsets#25913
MichaReiser merged 1 commit into
mainfrom
micha/ty-compact-binding-offsets

Conversation

@MichaReiser

@MichaReiser MichaReiser commented Jun 12, 2026

Copy link
Copy Markdown
Member

Summary

Store only cumulative end offsets for retained binding slices. Because the slices are contiguous, each start is the preceding end; this reduced semantic-index memory by 16.0 MiB on Home Assistant.

Test Plan

Testing: Core semantic-index tests and pre-commit hooks passed.

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

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

@astral-sh-bot

astral-sh-bot Bot commented Jun 12, 2026

Copy link
Copy Markdown

Memory usage report

Summary

Project Old New Diff Outcome
flake8 34.63MB 34.41MB -0.62% (221.15kB) ⬇️
trio 85.02MB 84.53MB -0.57% (498.86kB) ⬇️
sphinx 200.45MB 199.38MB -0.54% (1.08MB) ⬇️
prefect 545.78MB 542.50MB -0.60% (3.28MB) ⬇️

Significant changes

Click to expand detailed breakdown

flake8

Name Old New Diff Outcome
semantic_index 9.47MB 9.26MB -2.28% (221.15kB) ⬇️

trio

Name Old New Diff Outcome
semantic_index 20.67MB 20.19MB -2.36% (498.86kB) ⬇️

sphinx

Name Old New Diff Outcome
semantic_index 42.51MB 41.43MB -2.53% (1.08MB) ⬇️

prefect

Name Old New Diff Outcome
semantic_index 127.25MB 123.98MB -2.58% (3.28MB) ⬇️

@astral-sh-bot

astral-sh-bot Bot commented Jun 12, 2026

Copy link
Copy Markdown

ecosystem-analyzer results

No diagnostic changes detected ✅

Full report with detailed diff (timing results)

@MichaReiser MichaReiser marked this pull request as ready for review June 13, 2026 08:37
@astral-sh-bot astral-sh-bot Bot requested a review from charliermarsh June 13, 2026 08:37
@MichaReiser MichaReiser merged commit 1fee3ef into main Jun 13, 2026
59 checks passed
@MichaReiser MichaReiser deleted the micha/ty-compact-binding-offsets branch June 13, 2026 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

memory ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants