(misc): improve performance and maintainability#324
Closed
ss-o wants to merge 10 commits into
Closed
Conversation
…erated adds a noticable delay to zsh startup. This restricts checking it once a day, determines when to regenerate compinit (it doesn't need to modify the compdump everytime) and compiles mapped to share (total mem reduction) run in background in multiple shells. A function that can be invoked from within `atinit', `atload', e.g: zi ice atinit'zicompinit_fast'; zi load user/repository. Signed-off-by: Salvydas Lukosius <sall@w-ss.io>
…aliases and set owner of packages. Signed-off-by: Salvydas Lukosius <sall@w-ss.io>
…sudo from path declaration in zi.zsh Signed-off-by: Salvydas Lukosius <ss-o@users.noreply.github.com>
Signed-off-by: Salvydas Lukosius <ss-o@users.noreply.github.com>
* [refactor] Update codebase (#264) * [feat]: ZI_USR hash * [fix]: updates/deprecates/adds subcommand options and other minor helpers. * [refactor]: ⚡️ rename zi-show-times > zi-times + minor fixes --------- * message/output (#265) [feat]: improve/rewrite/silence message. * updates (#266) refactor: ⚡️ improves updates * zpmod/build (#267) * [build]: ⚡️ consolidate zpmod --------- * chore: 🚀 * style: 🎨 add space in output of 'zi times' * [fix]: .zi-prepare-home use builtin cd -q * fix: 🐛 register subcommand: report * improve .zi-module build process * perf: ⚰️ deduplicate compinit calls --------- Signed-off-by: Salvydas Lukosius <ss-o@users.noreply.github.com> Co-authored-by: Salvydas Lukosius <ss-o@users.noreply.github.com>
Signed-off-by: Salvydas Lukosius <ss-o@users.noreply.github.com>
|
Pull Request closed and locked due to lack of activity. |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
This pull request updates the
zicompinit_fast()function in thezi.zshfile to improve its performance and maintainability. The changes streamline the logic for regenerating the.zcompdumpfile, add support for Ubuntu-specific configurations, and enhance background processing for file compilation.Improvements to
.zcompdumpregeneration logic:.augurfile check with a.lockfile check to determine if.zcompdumpneeds regeneration, simplifying the logic and improving clarity.zrecompileinstead ofzcompile, ensuring compatibility and improved functionality.Ubuntu-specific enhancements:
/etc/os-releaseto setskip_global_compinit, optimizing behavior for Ubuntu environments.General improvements:
autoloadwithbuiltin autoloadforcompinitandzrecompile, ensuring more robust and explicit handling of shell builtins.