Description
I'm using lsp-ui-flycheck with cquery, which works great most of the time. Sometimes though (and I don't know why this issue seems to pop up so inconsistently) editing slows down to a crawl, with Emacs's profiler telling me that most of the CPU time is spent within flycheck.
For now, I have locally changed lsp-ui-flycheck-enable
to mark diagnostics as stale using a global variable and have flycheck constantly check that variable with an idle timeout.
Does anyone else experience this issue or is something wrong with my configuration?
If this is a general performance problem, it might make sense to have lsp-ui-flycheck--start
check if the lsp backend has sent any new diagnostics since flycheck had last been run and use flycheck's own timeout mechanism instead of manually invoking it from within lsp-after-diagnostics-hook
?