Skip to content
This repository has been archived by the owner on Mar 14, 2021. It is now read-only.

Enabling the 'linter' support makes errors blazingly fast #192

Open
LukaHorvat opened this issue Jan 19, 2017 · 3 comments
Open

Enabling the 'linter' support makes errors blazingly fast #192

LukaHorvat opened this issue Jan 19, 2017 · 3 comments

Comments

@LukaHorvat
Copy link

So I've randomly stumbled upon the setting today and decided to give it a shot. As expected the errors are shown using the linter package instead of in the custom ide-haskell section. What I didn't expect is the MASSIVE speedup.

Without the option enabled it takes 8 seconds for errors and warnings to show for my project. With it, it takes less than a second. The only downside (beside making the ide-haskell panel kind of redundant) is that some errors are shown as warnings.

How is this possible?

@lierdakil
Copy link
Contributor

lierdakil commented Jan 20, 2017 via email

@LukaHorvat
Copy link
Author

My theory is that maybe ghc-mod outputs errors almost immediately but then gets stuck doing something else for a while, and only after it's done the errors get shown.

@lierdakil
Copy link
Contributor

Shouldn't be the case. Messages are sent via UPIInstacne.setMessages, which is immediate. Also, everything that can be async, is, so nothing should block. I will try to test on my end, but caching seems the most likely explanation to me at the moment.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants