Skip to content

Conversation

maschwenk
Copy link
Contributor

Just a conversation starter. On a very large monorepo by setting this pretty low we can get very good performance with 25% less memory usage.

],
outputChannel: output,
traceOutputChannel: traceOutput,
...(memoryLimit ? { initializationOptions: { memoryLimit: memoryLimit } } : {}),
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't need to be an init option for the LS, you can just set GOMEMLIMIT as an env var for the process

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jakebailey do you mean for VSCode itself? because that's how I was testing this, like

GOMEMLIMIT=2048MiB code .

but then obviously that sets it for anything you run within the integrated VSCode terminal etc

Copy link
Contributor Author

Choose a reason for hiding this comment

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

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