perf: 修改为提前返回提升性能#216
Conversation
|
There was a problem hiding this comment.
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
isSourceFileDefaultLibrarymethod 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.
No description provided.