Skip to content
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

Improve completion perf #1038

Merged
merged 4 commits into from
Jan 16, 2021
Merged

Improve completion perf #1038

merged 4 commits into from
Jan 16, 2021

Conversation

prabirshrestha
Copy link
Owner

@prabirshrestha prabirshrestha commented Jan 11, 2021

This is work in progress to improve completion. Need to test with different language servers could be breaking some.

  • optimize lsp#omni#get_vim_completion_items ref: optimize lsp#omni#get_vim_completion_items() #835, add lsp#omni#get_vim_completion_items() #834
  • add/fix tests
  • do not compute documentation for all items in get_vim_completion_items and instead compute doc when popup is shown for that particular item
  • add support for lazy preview doc computation
  • cleanup unnecessary code and methods
  • profile
  • use lua for get_vim_completion_items when available for even faster perf
  • function overload experience?
  • update docs

@prabirshrestha prabirshrestha changed the title [Do not merge] WIP - Improve completion perf Improve completion perf Jan 16, 2021
@prabirshrestha prabirshrestha merged commit 6038748 into master Jan 16, 2021
@prabirshrestha prabirshrestha deleted the completion-perf branch January 16, 2021 19:05
@prabirshrestha
Copy link
Owner Author

This removes support for documentation in preview since has impact in perf by computing for all items instead of one that is visible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant