palantir / python-language-server

An implementation of the Language Server Protocol for Python
MIT License
2.6k stars 282 forks source link

Slow completion compared with Jedi #867

Open quantum-booty opened 3 years ago

quantum-booty commented 3 years ago

I thought pyls uses Jedi under the hood, but it is much slower. For example, when I type np. With jedi-ls the completion comes up instantly. But when it comes to pyls, it takes about 3 seconds for the completion to come up, which breaks my work flow. Are there settings to speed it up?

asif-mahmud commented 3 years ago

jedi has this settings - jedi.settings.call_signatures_validity changing it to something very high may help speed up autocompletion. I am not sure, but if its doable, i mean jedi server should keep the cache in memory as long as the project is opened right ?