ghc-mod icon indicating copy to clipboard operation
ghc-mod copied to clipboard

Sometimes opening a new .hs file takes ages -- imports are processed at one per 3 seconds

Open deepfire opened this issue 10 years ago • 2 comments

Sometimes opening a new .hs file takes ages -- imports are processed at the rate of one per several seconds.

GHC version: 7.10

I could provide an example of a module triggering this, but I doubt it's going to be helpful.

deepfire avatar May 18 '15 21:05 deepfire

Please do, test cases always help.

DanielG avatar May 19 '15 09:05 DanielG

I'm not sure what the elisp does now but maybe we can bulk query ghc-mod instead of invoking the executable multiple times. My thinking here being that the environment setup has become much slower than it used to be so each invocation has become a lot more costly which wasn't the case when the elisp was written.

DanielG avatar Jan 08 '16 17:01 DanielG