tbodt / deoplete-tabnine

Deoplete source for TabNine
256 stars 17 forks source link

Excessive cpu/memory usage #50

Closed petobens closed 3 years ago

petobens commented 3 years ago

@Shougo conside the following minimal init.vim file:

let $DOTVIM = expand('$HOME/.config/nvim')

set runtimepath+=$DOTVIM/bundle/repos/github.com/Shougo/deoplete.nvim
set runtimepath+=$DOTVIM/bundle/repos/github.com/tbodt/deoplete-tabnine
filetype plugin indent on

let g:deoplete#enable_at_startup = 1
call deoplete#custom#source('tabnine', 'rank', 101)

Now as in the GIF: i) Open neovim and something to monitor cpu usage (such as htop) ii) Within neovim open a markdown file (such as foo.md) and start writing some text (such as # Foo)) After ii) you will see that CPU/memory increases enormously. Is there a way to limit the number of process being spawned?

deoplete-tabnine

For the record i installed tabnine with:

call dein#add('tbodt/deoplete-tabnine', {'build': './install.sh'})

which results in version 3.1.6

Shougo commented 3 years ago

It is the Tabnine feature.

Please read Tabnine issues. https://github.com/codota/TabNine/issues

You can see many of several issues.

Note: You can disable TabNine local feature by TabNine::config.

petobens commented 3 years ago

Note: You can disable TabNine local feature by TabNine::config

How can I do this? Is there a deoplete setting for that?

Shougo commented 3 years ago

Please input it in Vim buffer. It is Tabnine feature.

petobens commented 3 years ago

Oh I see. I doesn't change memory usage a lot though. Do you use tabnine?

Shougo commented 3 years ago

Yes. I use it. It uses a lot of CPU usage... Powerful computer is suggested.

petobens commented 3 years ago

Ok. Thanks. Feel free to close.

Shougo commented 3 years ago

@tbodt Ping.