csharp-language-server icon indicating copy to clipboard operation
csharp-language-server copied to clipboard

Possibility of on-disk caching

Open rudiejd opened this issue 2 years ago • 1 comments

One issue I've noticed when running csharp-ls, or any other LSP, with a large project is startup time. csharp-ls specifically will redo semantic tokens and analysis regardless of whether files have changed since the last start.

Is there a possibility for this project to support on-disk caching, perhaps at the file or even project level? This is something that clangd does extensively, and it seems to benefit its startup time.

rudiejd avatar Nov 25 '23 14:11 rudiejd

I am not so sure about this. csharp-ls is a relatively thin wrapper over ms roslyn libs and I am not aware of api to allow this.

I may be wrong about this though--please correct me if I'm wrong!

Otherwise some kind of speculative caching could be attempted while project is being loaded but I am somewhat doubtful about the results vs effort ratio.

razzmatazz avatar Nov 25 '23 14:11 razzmatazz