-
Notifications
You must be signed in to change notification settings - Fork 109
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 on sublimeText3 too slow. #276
Comments
I found new info on console: Traceback (most recent call last): |
yeap, I can reproduce it :)
will try to measure/debug what is wrong |
PS:
with type hinting it works much faster :) 🏇 😱 |
I think there are some bugs with type hinting. Jedi is also not able to autocomplete the following code:
|
@Aero-fish I think you issue related to davidhalter/jedi/issues/1096 |
I still think this problem has something to do with this matter: File "C:\Users\jeeyong\AppData\Roaming\Sublime Text 3\Packages\Jedi - Python autocompletion\sublime_jedi\daemon.py", line 83, in ask_daemon_with_timeout |
@onebits can you try measure latency with jedi lib? |
@onebits I have added a extra logging (would be available in master soon) and what I found during checking the case:
jedi spend most of it time in parso.cache :( |
please check a new release |
new version still slowly |
I'm still getting the slowdown too. @srusskih: Any ideas? |
Still slow. |
@srusskih should we make it async again? but ignore requests that were sent before the last one made? |
@edelvalle if I can say something : I think it might be better async. Here, as soon as you type, the process is triggered after each letter. On the first letters of a word (in a project with some dependencies) you might notice that it takes quite a long time to process and let you type the second letter, then its the same again ... I think it might be interesting using async and a process like using a kind of search tree in which, for each letter, you store all the related nodes like a dictionary. Then the processing time might be reduced and an async called would be fast enough to display the results in time :) |
A prefix tree? |
@JeromeDesseaux sound like a plan, but we do not control "search" (&caching) logic of jedi
we can try provide option to enable/disable async for those who need it... |
@JeromeDesseaux what you think about throttling on typing? to reduce a number of completion tries... |
@srusskih to be honest : I never developed a sublime text extension. I admire all the people giving their time to do so! Really. I have no idea how Sublime works for completion... but is it possible to "clean" the completion box content instead of redrawing it each time ? Like a blackboard or an eraser. |
In my case, autocompletion works the first two or three times. After that, I get a timeout error and the autocompletion stops working entirely:
Is this due to this issue of speed? |
Hi, I have the same problem :/ . Have somebody found a solution to it? . I thank you in advance. |
Well just made a PR #306 it should solve this problem. |
When I typing code. It's very lagging...

For example:
content = res.content.decode('utf-8')
When I typing these code, on first "c" its lag.. res. its lag..
How to fix it ???
not a large file.
Look when i typing res.
The text was updated successfully, but these errors were encountered: