-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
auto complete suggestion takes almost 6 seconds [Performance] #576
Comments
Can you provide us with sample code that triggers the 6 second delay? |
It has been a while. We need sample code to see whether the issue is in the jedi or elsewhere. Feel free to reactivate. |
I'd like to share my experience. I also noticed really annoying delays. Sample code is very simple:
I'm using tensorflow 1.5, python 3.6 in a conda environment (someone in the comments noticed that jedi works faster with python3 than with python2). Actually I mentioned this issue here: davidhalter/jedi#937 (comment) I'm not sure how to track and it down and measure exactly. Besides, VSCode uses not the latest version of jedi, which might be different in terms of performance (but that's not certain). At least it could be checked whether VSCode adds up to that delay, right? |
@balta2ar Please try the following code: from tensorflow import <> Or import tensorflow
tensorflow.<> The following code doesn't provide any autocompletion (Jedi issue): from tensorflow import tf
tf. |
I've installed from VSIX and now the version says "2018-2.0-beta", so hopefully I'm trying the right version. However, the delay is still there for me. I agree it's around one second but it's still annoying... I can't say it got any faster after update, but that's just my subjective perception. I'd be glad to give actual numbers if you could guide me with instrumenting the code, I'm just not sure where and how to put measurements. Though, as David said in another jedi issue, we may very well be approaching the limits of jedi in terms of performance and it's hard to squeeze any more without aggressive caching. I think I mistyped in my comment and I wanted to write this: import tensorflow as tf
tf. but you got me right. |
You may be interested in https://github.com/Microsoft/vscode-python/projects/7#card-8587079 then :-) |
No delay with VS engine. Comparable to PyCharm. |
Auto complete suggestion takes almost 6 seconds to appear in a file com 900 lines
Environment data
VS Code version: 1.19.1
Python Extension version: 0.9.1
Python Version: 3.5
OS and version: Manjaro "updated"
Actual behavior
auto complete takes 6 seconds to appear
Expected behavior
appear instantaneously
Steps to reproduce:
Logs
Output from
Python
output panelOutput from
Console window
(Help->Developer Tools menu)The text was updated successfully, but these errors were encountered: