Skip to content
This repository was archived by the owner on Jul 15, 2023. It is now read-only.

Do not get definition info if not identifier#711

Merged
ramya-rao-a merged 1 commit intomicrosoft:masterfrom
ramya-rao-a:improve-perf
Jan 5, 2017
Merged

Do not get definition info if not identifier#711
ramya-rao-a merged 1 commit intomicrosoft:masterfrom
ramya-rao-a:improve-perf

Conversation

@ramya-rao-a
Copy link
Copy Markdown
Contributor

@ramya-rao-a ramya-rao-a commented Jan 5, 2017

The Go extension spawns a new process to get definition information each time the hover provider is triggered. This sometimes results in massive number of processes to spin up and cause perf issues.

When we know beforehand that the text under the cursor is not an identifier, then we can skip creating new processes to get definition information.

In this PR, we do this for the below cases:

  • Not a word
  • Is a keyword
  • Is a number
  • Is part of a string literal
  • Is part of a single line comment

@ramya-rao-a ramya-rao-a merged commit 148c744 into microsoft:master Jan 5, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants