Skip to content

Skip object classification for shared type facts - #64188

Open
Mateusz Burzyński (Andarist) wants to merge 1 commit into
microsoft:mainfrom
Andarist:skip-shared-object-type-fact-classification
Open

Skip object classification for shared type facts#64188
Mateusz Burzyński (Andarist) wants to merge 1 commit into
microsoft:mainfrom
Andarist:skip-shared-object-type-fact-classification

Conversation

@Andarist

Copy link
Copy Markdown
Contributor

This allows the compiler to skip some work at times. Some of the isEmptyObjectType, isFunctionObjectType calls and alikes performed down the line can be skipped.

Copilot AI balanced review requested due to automatic review settings September 7, 2026 09:29
@github-project-automation github-project-automation Bot moved this to Not started in PR Backlog Sep 7, 2026
@typescript-automation typescript-automation Bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Sep 7, 2026
@typescript-automation

Copy link
Copy Markdown

This PR doesn't have any linked issues. Please open an issue that references this PR. From there we can discuss and prioritise.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The optimization preserves requested type facts while safely avoiding unnecessary member resolution.

Pull request overview

Optimizes type-fact computation by avoiding unnecessary object classification when all object kinds share the requested facts.

Changes:

  • Computes facts common to empty, function, and regular objects.
  • Returns shared facts early when classification cannot affect the result.
File summaries
File Description
tsc/internal/checker/checker.go Adds the shared-fact fast path.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Balanced

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

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

Labels

For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

Status: Not started

Development

Successfully merging this pull request may close these issues.

2 participants