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

Cache results of 'go list' when fetching package info to get package variables #2289

Merged
merged 2 commits into from
Jan 29, 2019
Merged

Cache results of 'go list' when fetching package info to get package variables #2289

merged 2 commits into from
Jan 29, 2019

Conversation

jhendrixMSFT
Copy link
Member

The 'go list' command is expensive so the result should be cached.
There was a cache in place but it wasn't being populated.

The 'go list' command is expensive so the result should be cached.
There was a cache in place but it wasn't being populated.
@jhendrixMSFT jhendrixMSFT self-assigned this Jan 29, 2019
@jhendrixMSFT
Copy link
Member Author

Related to #1854

Copy link
Contributor

@ramya-rao-a ramya-rao-a left a comment

Choose a reason for hiding this comment

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

I am feeling very stupid right now :(

This definitely should solve a major part of the perf problem.
Lets change the default value of showGlobalVariables to true.
I'll reach out to folks whose perf issues got solved by this setting and ask them to give the new beta a try.

@ramya-rao-a ramya-rao-a changed the title Cache results of 'go list' Cache results of 'go list' when fetching package info to get package variables Jan 29, 2019
@ramya-rao-a
Copy link
Contributor

You will also need to update https://github.com/Microsoft/vscode-go/blob/98c965110942a4d9fbdcde9e9a8af8d9398c4699/src/debugAdapter/goDebug.ts#L560

@ramya-rao-a ramya-rao-a merged commit 5c31292 into microsoft:master Jan 29, 2019
@jhendrixMSFT jhendrixMSFT deleted the globalsperf branch January 29, 2019 23:04
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.

2 participants