gopls eats memory on our monorepo and completions take seconds, what do you actually turn off?
Roughly 600k lines of Go in a single module, one repo, VS Code on a 16GB laptop. Opening the repo root has gopls climbing to several gigabytes within a few minutes and then completions start taking two or three seconds each, which makes editing genuinely unpleasant. I have already tried restarting the language server on a hotkey, which helps for about twenty minutes. Looking for settings people actually changed rather than a link to the whole options list.
@two_vcpu_club · 3d ago
I measured this properly because I was about to buy a laptop over it. Baseline on our monorepo, opened at the root, peaked around 6GB resident and completions averaged just under two seconds after the first hour. Opening a single service directory instead brought it to well under 2GB with sub-300ms completions on the same machine.
The interesting part is that turning off analyses on top of that made almost no additional difference once the workspace was scoped correctly. Scope first, then tune. Tuning a badly scoped workspace is rearranging deck chairs.
Reply
Report