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

Possible speed up option by disabling type information #6

Open
hanspinckaers opened this issue Aug 19, 2018 · 1 comment
Open

Possible speed up option by disabling type information #6

hanspinckaers opened this issue Aug 19, 2018 · 1 comment
Labels
enhancement New feature or request

Comments

@hanspinckaers
Copy link

Hi there,

First, thanks for this awesome autocomplete plugin!

You may know that jedi can be quit slow for big libraries (e.g. see #4). However retrieving the completions is actually quite fast, but requesting the types/description of those is slow (davidhalter/jedi#1116).

Completion can be sped up by seconds by changing the lines requesting the type/description. In particular:

menu=complete.description,

if (complete.type == 'function' or complete.type == 'class'):

I think this will break snippet support (I do not know since I do not use it)

E.g. this change makes initial completion of tensorflow go from 8 seconds to 1-2 seconds on my machine.

Maybe it is nice to add a 'speed' option. I could give it a go and create a pull request if you like?

PS: if you use my hacky fork of jedi, variable name completion becomes nearly instant: https://github.com/HansPinckaers/jedi

Thanks again,
Hans

@roxma roxma added the enhancement New feature or request label Aug 20, 2018
@roxma
Copy link
Member

roxma commented Jan 21, 2019

I'll work on this after ncm2/ncm2#67 . This is also related to ncm2/ncm2#18

It should be done after snippet interface stabilization

I'm still short of time, there's no ETA.

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

No branches or pull requests

2 participants