Skip to content

update-cache: Build the cache without loading#381

Closed
paulmelnikow wants to merge 1 commit into
zplug:masterfrom
paulmelnikow:update_cache
Closed

update-cache: Build the cache without loading#381
paulmelnikow wants to merge 1 commit into
zplug:masterfrom
paulmelnikow:update_cache

Conversation

@paulmelnikow

@paulmelnikow paulmelnikow commented Mar 7, 2017

Copy link
Copy Markdown

Hi there, I recently learned about zplug and have started playing around with it. It's good stuff. I've also started evaluating it for integration into Prezto (see prezto-inactive-community-fork/prezto#52). I'd like to find easy ways for Prezto users to install external plugins, and thought zplug might be a good way to do that!

Is there a plan to port zplug to a compiled language? I saw a note on the project board. That would be cool. I think the biggest barrier for plugin-manager adoption is speed, especially for Prezto and Zim users who are used to snappy startup.

In a proof of concept, I was able to shave a few hundred milliseconds off my startup time by pulling out bits and pieces of zplug code to handle the loading, while using zplug "as is" to manage configuration, installation, and updates. There's more to do, the logging isn’t as rich, and the code is a mess, but it was enough to prove it might work. I'd be happy to share it, though would like to clean it up first, and maybe it could be included in Prezto.

Apart from Prezto, providing this CLI option could also provide a way for other developers to optimize load speed separately from the rest of zplug.

With this change, I can use separate loading code with an unmodified copy of zplug. It's a simple thing and I hope you'll include it.

Exposing this functionality enables developers to build on zplug's capabilities. They can build their own loading logic while using zplug to manage and download plugins. In a proof of concept, I was able to shave a few hundred milliseconds off my startup time this way.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants