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

Skip to content

[ty] Stream indexed AST construction#26184

Merged
charliermarsh merged 1 commit into
mainfrom
micha/stream-indexed-ast-nodes
Jun 21, 2026
Merged

[ty] Stream indexed AST construction#26184
charliermarsh merged 1 commit into
mainfrom
micha/stream-indexed-ast-nodes

Conversation

@MichaReiser

@MichaReiser MichaReiser commented Jun 21, 2026

Copy link
Copy Markdown
Member

Summary

Stream the AST index into 64-node packed chunks instead of retaining a whole-AST pointer vector. This reduces transient allocation by 8.8 MB on Flake8 and 20.8 MB on Trio without changing the retained index layout.

Performance

2-3% across all projects

Test Plan

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

@astral-sh-bot

astral-sh-bot Bot commented Jun 21, 2026

Copy link
Copy Markdown

Memory usage report

Memory usage unchanged ✅

@astral-sh-bot

astral-sh-bot Bot commented Jun 21, 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 force-pushed the micha/stream-indexed-ast-nodes branch from 2b635cf to d9cdcfc Compare June 21, 2026 11:24
@astral-sh-bot

astral-sh-bot Bot commented Jun 21, 2026

Copy link
Copy Markdown

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@MichaReiser MichaReiser force-pushed the micha/stream-indexed-ast-nodes branch from d9cdcfc to e2ebe76 Compare June 21, 2026 11:46
@MichaReiser MichaReiser force-pushed the micha/stream-indexed-ast-nodes branch from e2ebe76 to ea6ee0d Compare June 21, 2026 11:53
@MichaReiser MichaReiser added performance Potential performance improvement ty Multi-file analysis & type inference labels Jun 21, 2026
@MichaReiser MichaReiser marked this pull request as ready for review June 21, 2026 12:23
@MichaReiser MichaReiser requested a review from a team as a code owner June 21, 2026 12:23
@charliermarsh charliermarsh merged commit 5628807 into main Jun 21, 2026
59 checks passed
@charliermarsh charliermarsh deleted the micha/stream-indexed-ast-nodes branch June 21, 2026 23:38
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