Git Product home page Git Product logo

Comments (12)

emilsoman avatar emilsoman commented on May 17, 2024 1

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 :

This is without alchemist:
without-alchemist

This is with alchemist:
with-alchemist

from alchemist.vim.

slashmili avatar slashmili commented on May 17, 2024

I'm sure @lucidstack can help here more than me :)

from alchemist.vim.

Cifer-Y avatar Cifer-Y commented on May 17, 2024

@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.

emilsoman avatar emilsoman commented on May 17, 2024

@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.

slashmili avatar slashmili commented on May 17, 2024

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.

emilsoman avatar emilsoman commented on May 17, 2024

@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.

slashmili avatar slashmili commented on May 17, 2024

@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.

slashmili avatar slashmili commented on May 17, 2024

@emilsoman may I know if you experience change if the current file size(lines) is big or small?

from alchemist.vim.

emilsoman avatar emilsoman commented on May 17, 2024

@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.

nhooyr avatar nhooyr commented on May 17, 2024

@emilsoman deoplete-go doesn't cache all results. It only generates a cache for standard library completions.

from alchemist.vim.

jfrolich avatar jfrolich commented on May 17, 2024

Very slow for me as well in quite a big project.

from alchemist.vim.

slashmili avatar slashmili commented on May 17, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.