Server startup is slow for 3278 ruby files sized project #164
I have a project which has 3278 ruby files not including vendor.
I started up vscode and the server startup time after opening a ruby file took ~5 minutes or so.
I have a fairly good laptop with i7 8 cores and such.
What I'm asking is... is this normal? I mean it probably is, since it's parsing every file possible. And after startup everything works smoothly. I'm just curious if this is normal. :)
I've also added this config:
So vendor should be ignored, right?
That's about what I'd expect from a project of that size, depending on LOC. Here are some recent benchmarks on a Windows 10 PC with AMD 4GHz 8-core and 32 GB RAM:
The number of gem dependencies can also have an impact, but the most time-consuming part of initialization is usually indexing the project files.
Load times are an ongoing concern. I'm experimenting with ways to improve it, but right now the best solution is to make sure you limit the included files to the code you absolutely need to index.
Thanks for the breakdown! Don't worry, I don't mind the bit slow startup. After that it runs just fine.
Usually I get in, start the IDE then go make tea and when I'm back it's all cool. ☕
The benefits of using solargraph outweigh this minor nuisance hundredfolds! Never been happier with working with Ruby.