Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
cache packages to improve speed #71
Merge the caching branch into master. The cache branch reads export data files and caches them. If no export data is available, the cache importer falls back to the source importer, and it caches its results for a certain limited amount of time (20 minutes now, can be changed). The cache importer works with packages in a gb layout. If the
In case this is because you're interested in using mdempsky/gocode in sourcegraph/go-langserver, I think there's a much better way to accomplish that. It looks like go-langserver already has a caching mechanism for loader.Programs? Then this is just an unnecessary level of abstraction and complexity.
I think it would be better to generate suggestions from the same cached type information go-langserver uses to implement hover/definition/etc.