cmake.vim icon indicating copy to clipboard operation
cmake.vim copied to clipboard

Slow Starts within NeoVim on :VimEnter

Open jalcine opened this issue 9 years ago • 5 comments

Under Neovim, cmake.vim doesn't take advantage of the async job-control functionality thus making it take the whole program's start time a bit longer.


This originated at https://github.com/neovim/neovim/issues/2888.

jalcine avatar Jun 25 '15 18:06 jalcine

@languitar's thoughts were correct; it's a caching job that's done to pre-emptively load all of the information about CMake. CMake doesn't have a querying system for that (assumes that you'd only be using the generated build tool-chain).

That said, @languitar, what version of the plugin are you using? The plug-in shouldn't do any caching at all if it's in your home directory (since it shouldn't find a CMakeCache.txt file at $HOME).

jalcine avatar Jun 25 '15 18:06 jalcine

Just re-read old issue; you're using latest. I'll start looking into using jobcontrol and see how I can incorporate that into cmake.vim

jalcine avatar Jun 25 '15 18:06 jalcine

great to hear.

If caching shouldn't happen, any way to find out what is actually wasting my start time?

languitar avatar Jun 25 '15 20:06 languitar

I've taken some time to look into this and I'm debating actually disabling caching and making it something the user has to explicitly do if they request it (via an option). I also debated persisting the cache into disk after the first time and having it be updated occasionally.

I can also avoid this by forcing users to use the JSON compilation information as a basis for info but I'm afraid that that'll couple a dependency like Ruby or Python into Vim and I wanted to avoid that.

jalcine avatar Jun 29 '15 20:06 jalcine

Okay so I had to take some time to really understand neovim (ended up moving to it) and now I think I might end up doing one of the following:

jalcine avatar Aug 07 '15 15:08 jalcine