Skip to content

perf: 修改为提前返回提升性能#216

Merged
Groupguanfang merged 1 commit into
nextfrom
next-dev
Nov 27, 2025
Merged

perf: 修改为提前返回提升性能#216
Groupguanfang merged 1 commit into
nextfrom
next-dev

Conversation

@Groupguanfang
Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings November 27, 2025 01:35
@github-project-automation github-project-automation Bot moved this to Todo in ArkTS Nov 27, 2025
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Nov 27, 2025

⚠️ No Changeset found

Latest commit: 13aaa25

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR implements a performance optimization by introducing early returns to avoid unnecessary expensive operations. The changes focus on the semantic token processing logic in the language server, specifically improving the efficiency of highlighting @interface annotations.

Key Changes:

  • Added explicit binding for isSourceFileDefaultLibrary method to preserve correct execution context
  • Optimized annotation classification loop by checking simple conditions before calling expensive AST traversal functions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Groupguanfang Groupguanfang self-assigned this Nov 27, 2025
@Groupguanfang Groupguanfang merged commit 96e0fa6 into next Nov 27, 2025
9 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in ArkTS Nov 27, 2025
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.

2 participants