Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve performance on typing #39

Open
otavioschwanck opened this issue Nov 24, 2020 · 5 comments
Open

Improve performance on typing #39

otavioschwanck opened this issue Nov 24, 2020 · 5 comments

Comments

@otavioschwanck
Copy link

otavioschwanck commented Nov 24, 2020

Using company tabnine, the typing feels very laggy, the letters take some time to appears, don't feel smooth like others backends (like LSP or dabbrev).

Using on neovim-qt or vscode ( installed only for test propose, dont judge me hahah ) the type feels smooth (the time between the key press and the lettter show and editor feels like 0ms ).

I dont know how to do it, but maybe change it to something more async.

Edit:

My PC is OK, i7 8gen, 16 ram, ssd nvme 2

@NathanLovato
Copy link

Which company frontend are you using? I found that company-box is really slow while with the one that Doom Emacs configures by default it's really responsive.

@TommyX12
Copy link
Owner

As @NathanLovato said, the company frontend being used does make a difference.

Also, check to see if TabNine local deep learning completion is enabled. This is in the README known issues:

TabNine's local deep learning completion might be enabled by default. It is very CPU-intensive if your device can't handle it. You can check by typing "TabNine::config" in any buffer (your browser should then automatically open to TabNine's config page) and disable Deep TabNine Local (you will lose local deep learning completion).

@otavioschwanck
Copy link
Author

otavioschwanck commented Nov 30, 2020

I'm not using company-box, just (company-pseudo-tooltip-frontend company-echo-metadata-frontend).

Without deep learning, tabnine loses a lot of potencial. WIth vscode and nvim, works fine with deep learning, the lags is when typing. With LSP (like solargraph), dabbrev, robe, etc, it not occurs.

I'm also using gccemacs, but tested on emacs 27 too, same thing.

@MatthewZMD
Copy link
Contributor

Is there any reason not to implement async with company-tabnine?

@maikol-solis
Copy link

maikol-solis commented Apr 24, 2022

Typing prose in an org-mode file makes my CPU 100% with local-mode activated

image

image

How could I improve this?

Edit: I deactivated local-mode and restarted Emacs a couple of times and the CPU stays in reasonable values

image

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

No branches or pull requests

5 participants