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
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:
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:
ncm2-jedi/pythonx/ncm2_jedi.py
Line 83 in 0418d5c
ncm2-jedi/pythonx/ncm2_jedi.py
Line 94 in 0418d5c
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
The text was updated successfully, but these errors were encountered: