You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When opening other files than .cs, e.g. .el or .ts files, I see that there is a company-omnisharp function called, even if the buffer loaded is not in csharp mode.
This makes the 1st-time-loading of an emacs-lisp file very slow. Trying to profile this with emacs profiler shows:
, which shows that 87% of the time setting up the emacs-lisp-mode was spent on the company-omnisharp function. The impact of this company-omnisharp varies on the file / mode loaded.
Hi @bezirg . Sorry for replying this late. I didn't notice this myself since I am using spacemacs where this is taken care for (major-mode based company-backends list). But I found this on stack overflow:
Can you check if making company-backends a local variable for a buffer withmake-local-variable works (in you mode hook) -- and remove global eval-after-load.
I have not tried this solution by myself, but maybe that helps you? And if it does, we can then integrate the fix into README.md
Hello,
When opening other files than
.cs
, e.g..el
or.ts
files, I see that there is acompany-omnisharp
function called, even if the buffer loaded is not in csharp mode.This makes the 1st-time-loading of an emacs-lisp file very slow. Trying to profile this with emacs profiler shows:
, which shows that 87% of the time setting up the
emacs-lisp-mode
was spent on thecompany-omnisharp
function. The impact of thiscompany-omnisharp
varies on the file / mode loaded.Trying to set:
, did not improve loading times and
company-omnisharp
still ran.The text was updated successfully, but these errors were encountered: