Skip to content

perf(hir): cache type inference queries#284

Merged
hongjr03 merged 1 commit into
masterfrom
feat/hir-type-infer-salsa-queries
Jun 26, 2026
Merged

perf(hir): cache type inference queries#284
hongjr03 merged 1 commit into
masterfrom
feat/hir-type-infer-salsa-queries

Conversation

@hongjr03

@hongjr03 hongjr03 commented Jun 26, 2026

Copy link
Copy Markdown
Member

Summary

  • Registers type inference entry points as salsa queries on HirDb returning Arc-wrapped TyResult values.
  • Keeps recursive inference internals on private implementation functions so existing typedef cycle handling remains unchanged.
  • Moves IDE consumers to database query methods while leaving helper views such as members_of_ty as free functions.

Validation

  • cargo build --workspace
  • cargo test --workspace
  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets -- -D warnings
  • git diff --check

@hongjr03 hongjr03 marked this pull request as ready for review June 26, 2026 16:36
@hongjr03 hongjr03 merged commit 81a133c into master Jun 26, 2026
18 checks passed
@hongjr03 hongjr03 deleted the feat/hir-type-infer-salsa-queries branch June 26, 2026 16:38
@github-actions

Copy link
Copy Markdown

Docs preview: https://vide.pascal-lab.net/preview/pr-284/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant