update-cache: Build the cache without loading#381
Closed
paulmelnikow wants to merge 1 commit into
Closed
Conversation
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.
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.