GithubHelp home page GithubHelp logo

auto caching? about unite-tag HOT 9 CLOSED

zhaocai avatar zhaocai commented on July 18, 2024
auto caching?

from unite-tag.

Comments (9)

tsukkee avatar tsukkee commented on July 18, 2024

Hi zhaocai,
Thanks for your comment.

Sorry, but this plugin doesn't have such function now.
If we do that, we should think about how to load tags asynchronously.

from unite-tag.

zhaocai avatar zhaocai commented on July 18, 2024

One way I can think of is to export interface function for user. Then the user can use autocmd or command to load whatever they want.

And of course, it should be done asynchronously. Should vimproc has functions to do that?

On Jan 13, 2012, at 10:58 AM, Takayuki Tsukitani wrote:

Hi zhaocai,
Thanks for your comment.

Sorry, but this plugin doesn't have such function now.
If we do that, we should think about how to load tags asynchronously.


Reply to this email directly or view it on GitHub:
#3 (comment)

from unite-tag.

tsukkee avatar tsukkee commented on July 18, 2024

Yes, I think we can do that with vimproc. But, it needs lots of work.
Unfortunately, I don't have much time to do that soon.
If you are interested in doing that, please fork and try to modify! Thanks.

from unite-tag.

thinca avatar thinca commented on July 18, 2024

asynchronously

I think this is difficult.

unite-tag loads and parses a tagfile by pure vim script.
The loaded data is stored to a dictionary of vim variable.
These operations can not at external process.

from unite-tag.

zhaocai avatar zhaocai commented on July 18, 2024

unite-tag loads and parses a tagfile by pure vim script.
The loaded data is stored to a dictionary of vim variable.
These operations can not at external process.

Maybe save the parsed dictionary to a file and restore next time.

from unite-tag.

tsukkee avatar tsukkee commented on July 18, 2024

I'm sorry for my very slow work, but I have implemented caching the parsing result (on tags-caching branch).
Although this is different from zhaocai's first request, I think this is useful.

from unite-tag.

zhaocai avatar zhaocai commented on July 18, 2024

Sorry, I missed this updates. I tried it and it seems that some background jobs is running after the cache is done. And that background jobs are slowing everything done. By the way, the caches files I have is about 18M.

from unite-tag.

wikimatze avatar wikimatze commented on July 18, 2024

@tsukkee I have a similar problem, when doing in a Padrino project ctags -R -f gems.tagsbundle show --paths`` the generated tag has a size of is 23 MB and it took me around 2 minutes until all tags were gathered without using neocomplete.vim by @Shougo. What about the further development of the things you did in your https://github.com/tsukkee/unite-tag/tree/tags-caching branch mentioned by @zhaocai?

from unite-tag.

Shougo avatar Shougo commented on July 18, 2024

Done.

from unite-tag.

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.