Skip to content

[ty] Enable optimizations for salsa in debug profile#18117

Merged
MichaReiser merged 1 commit intomainfrom
micha/optimize-salsa-in-dev
May 15, 2025
Merged

[ty] Enable optimizations for salsa in debug profile#18117
MichaReiser merged 1 commit intomainfrom
micha/optimize-salsa-in-dev

Conversation

@MichaReiser
Copy link
Member

@MichaReiser MichaReiser commented May 15, 2025

Summary

We use salsa a lot and it changes infrequently. This PR enables more aggressive optimizations for the salsa crate when using the debug profile.
This should give us faster test (and ty execution) at the cost of slightly longer compile times when compiling a new salsa version for the first time.

Test Plan

This reduces the wall time for cargo nextest run -p ty_python_semantic --test mdtest from ~4s to ~3.3s on my machine

@MichaReiser MichaReiser added testing Related to testing Ruff itself ty Multi-file analysis & type inference labels May 15, 2025
@github-actions
Copy link
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Formatter (stable)

✅ ecosystem check detected no format changes.

Formatter (preview)

✅ ecosystem check detected no format changes.

Copy link
Contributor

@sharkdp sharkdp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@MichaReiser MichaReiser merged commit 5761703 into main May 15, 2025
34 checks passed
@MichaReiser MichaReiser deleted the micha/optimize-salsa-in-dev branch May 15, 2025 10:31
Glyphack pushed a commit to Glyphack/ruff that referenced this pull request May 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing Related to testing Ruff itself ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants