tbodt / deoplete-tabnine

Deoplete source for TabNine
256 stars 17 forks source link

High memory usage #39

Closed hissssst closed 5 years ago

hissssst commented 5 years ago

2019-10-14-191157_1920x1056_scrot Four nvim instances kill my memory. It used to be fine One instance uses twice as much as 10 firefox tabs usage

tbodt commented 5 years ago

Not a problem with the vim plugin, open an issue at https://github.com/zxqfl/TabNine.

hissssst commented 5 years ago

Actually, you could share the TabNine between the vim instances without spawning it for every vim instance.

hissssst commented 5 years ago

You may reopen the issue, so I may write a pr

tbodt commented 5 years ago

I don't think TabNine is designed to allow sharing between editor instances. How do you plan to do it?

hissssst commented 5 years ago

@tbodt . I thought about it via piping TabNine's stdin/stdout to some files somewhere in /tmp. You can't type into two different nvim instances simultaneously, so it is possible to time-track different answers to different requests. This implementation has some problems like suggestions from one editor will be shown in the other editor, but i think it's ok, because the same thing happens when switching between different splits in one instance

tbodt commented 5 years ago

It is possible for two people to type in two nvim instances simultaneously, which is less OK. You should request multi-user support from upstream first.

hissssst commented 5 years ago

@tbodt Okay, you're right. I'll ask tabnine for support