Comments (12)
I enabled debug mode and give it a try. Nothing suspicious as far as I can tell. I can see two commands : COMPX
and COMP
for each of the characters I have typed. Anyway, to give you an idea how the slowness looks like :
from alchemist.vim.
I'm sure @lucidstack can help here more than me :)
from alchemist.vim.
@slashmili everything is awesome today, so I will close this issue, because I think this question is not helpful for both you and me 😂
from alchemist.vim.
@slashmili Thanks for this great plugin! I noticed that when I add alchemist.vim to my plugins, deoplete takes a few seconds (2-3 seconds) for the autocomplete popup to be displayed in a fairly big phoenix app. Sometimes I'm only interested in autocompleting words from my current buffer and not from alchemist-server, but because of alchemist being in the loop, even words from the buffer source take 2-3 seconds. I'm wondering if there's a way to show suggestions from the buffer source immediately and delay the display of suggestions from from alchemist source until when the results are ready.
I am not sure if this is possible in deoplete at all because I have no idea how it works 😄
from alchemist.vim.
Well not really, as you might know in order to have inside about the code there is an alchemist-server
running in the backend and there is no way to limit it only to the current file.
I'm just wondering what part of it slow, can you follow the debugging steps from #54 and check how long does it take to get answer from each command(one from alchemist_client and another from alchemist-server directly)
from alchemist.vim.
@slashmili sure, I'll follow the steps and get more details on what's slow, thanks!
By the way, my question was not whether we can fetch suggestions for elixir file in current buffer, my question is something else - is it possible to make alchemist suggestions show up in the popup list in an asynchronous way so that as soon as I type something, the fastest sources are populated in the popup first ? (the variables in the current buffer, for example can be sourced by deoplete directly without asking alchemist - which can be done very fast by deoplete without waiting for alchemist).
from alchemist.vim.
@emilsoman hmm I'm not familiar with deoplete
so It's hard to say it's possible or not. However we can have chat on elixir slack group and see if we can do anything about that.
from alchemist.vim.
@emilsoman may I know if you experience change if the current file size(lines) is big or small?
from alchemist.vim.
@slashmili I can confirm that autocompletion is fast when working with a new mix project. The slowness that I observed is in an app with 155 .ex
files. The length of the current file is not big (only around 130 lines long), but I tried with a new file to confirm - results are the same (still slow).
Looking at https://github.com/zchee/deoplete-go , it looks like they're caching results to make autocompletes faster. Do you think we can do something like that here?
from alchemist.vim.
@emilsoman deoplete-go doesn't cache all results. It only generates a cache for standard library completions.
from alchemist.vim.
Very slow for me as well in quite a big project.
from alchemist.vim.
@jfrolich can you please create new issue and provide the information on new issue form?
This issue is quite old and a lot of thing has changed internally in this plugin.
from alchemist.vim.
Related Issues (20)
- socket is not available HOT 17
- K / ExDoc loses last line of documentation HOT 1
- Suggestions dont show up for deoplete HOT 2
- Feature Request: Let alchemist.vim call elixir_sense's "Referrers" code HOT 6
- failed to load deoplete source HOT 2
- something wrong editing the elixir code with spacevim HOT 1
- error on looking up for a function that is imported
- Error when work with YouCompleteMe HOT 1
- Problems installing with vim-plug for VimR (Neovim) on macOS? HOT 1
- Change short keys bindings for ExDoc? HOT 7
- ExDoc and ExDef for functions (or modules) in Embedded Elixir files HOT 1
- ExDoc shortcut fails when non-ascii characters present in source file HOT 7
- ExDoc is wrong arity for function called in 'pipeline' HOT 3
- Python error HOT 2
- When trying to jump to a function definition: Error: "E484: Can't open file: b' ..." HOT 3
- Autocomplete imports already written module HOT 7
- definition_not_found% for local definition in small project (wrong working directory?) HOT 5
- Autocomplete not works on Windows HOT 3
- Doesn't work on Ubuntu 20.04 HOT 6
- Can we change this to '<C-[>'?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alchemist.vim.