-
-
Notifications
You must be signed in to change notification settings - Fork 511
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
Jedi is slow for pandas completion for pd.read_csv dataframes #1696
Comments
I think you should upload the sample CSV file. |
No, it does not matter if the file does not exists, or is big, or is small. (As I tested it.) I don't think jedi actually executes the code. I think it just analyzes the structure of it. |
I can confirm (although a bit faster):
However this is a known issue and part of #1059, this cannot simply be fixed. I have tried my best with pandas, but the library is so big that without good caching it's simply hopeless. If somebody wants to work on this, I'm also willing to accept stuff like |
Given the similarities with #520 I hoped it there would be some possibility, but understandable. Thanks for looking into this. |
I found this as well, with iPython 7.29: I wonder if it is possible to simply hard-code skipping the type determination for the |
This is very similar to #520. That one is solved, so I wonder if the same resolution can be applied to this case.
The case here applies to a dataframe not created by
pd.DataFrame
but bypd.read_csv
(my typical use case).As you can see, it is very slow here:
While on my machine the example from #520 works great:
Also, somewhat unrelated. I use deoplete for the completions and disable jedi completions with
let g:jedi#completions_enabled = 0
, but still these issues slow down vim completely for me. deoplete-vim is completely usable in these scenarios, but I use jedi-vim for renaming and goto and because of this that is unusable.jedi: 0.17.2
Python: 3.9.0
Linux (Debian 10)
The text was updated successfully, but these errors were encountered: