Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix in-memory cache issue and add some nice minor utilities #57
With this PR Solargraph does a complete parse of the codebase at its initialization.
I was able to achieve almost instantaneous
It also kept working all when I moved definitions from file to file or removed some.
I have no idea why, but I suspect the autoloading was not working well with the cache of the variables in the famous form of:
def my_var @my_var ||= ExpensiveCalculation.do_it() end
This can probably be applied in other places and also improve performance in other areas.