Open alanz opened 9 years ago
The cache should only be rebuilt starting from the file you modified so that shouldn't take toooo long. How big is the module graph cache file? Maybe actually writing it out to disk is taking too long.
The module graph cache file is 62Kb. The problem is that it then shows in the message bar that it is loading all the dependencies, which in this case includes the GHC API and this is what takes all the time.
On Wed, Aug 26, 2015 at 4:50 AM, Daniel Gröber notifications@github.com wrote:
The cache should only be rebuilt starting from the file you modified so that shouldn't take toooo long. How big is the module graph cache file? Maybe actually writing it out to disk is taking too long.
— Reply to this email directly or view it on GitHub https://github.com/kazu-yamamoto/ghc-mod/issues/568#issuecomment-134800788 .
Every time I save a file or open a new one, it takes a long time and the timestamp on
dist/setup-config.ghc-mod.resolved-components
becomes the current time.I suspect the cache is being rebuilt each time.
Using ghc-mod at https://github.com/kazu-yamamoto/ghc-mod/commit/c5db06af0fea8044757b7b563c0e7ef9de2fe6c6