fix: performance issue from @Copilot in #213#214
Conversation
|
There was a problem hiding this comment.
Pull request overview
This PR addresses a performance issue by optimizing AST traversal in semantic token processing. The fix consolidates two separate tree walks into a single traversal, significantly reducing computational overhead when processing semantic classifications.
Key changes:
- Introduced a new
findAnnotationOrDecoratorNodeInPositionfunction that checks for three node types in a single AST traversal - Replaced two sequential
findNodeInPositioncalls with one consolidated call in the semantic token processing loop
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.