x/tools/gopls: unimported completions do a lot of work #37183
I noticed unimported completions were adding 30ms latency to every completion request via
There is also an
Maybe the easiest thing is to offer some way to disable unimported package name candidates, leaving unimported package member candidates. That way we wouldn't call
Maybe another option is to have a very coarse cache of the result of imports.GetAllCandidates that gets busted whenever any watched file event comes? It's weird that everything is mostly cached already but we still do some much work every time.
The text was updated successfully, but these errors were encountered: