Skip to content

(misc): improve performance and maintainability#324

Closed
ss-o wants to merge 10 commits into
mainfrom
perf-zicompinit-fast
Closed

(misc): improve performance and maintainability#324
ss-o wants to merge 10 commits into
mainfrom
perf-zicompinit-fast

Conversation

@ss-o

@ss-o ss-o commented Jun 15, 2025

Copy link
Copy Markdown
Member

This pull request updates the zicompinit_fast() function in the zi.zsh file to improve its performance and maintainability. The changes streamline the logic for regenerating the .zcompdump file, add support for Ubuntu-specific configurations, and enhance background processing for file compilation.

Improvements to .zcompdump regeneration logic:

  • Replaced the .augur file check with a .lock file check to determine if .zcompdump needs regeneration, simplifying the logic and improving clarity.
  • Updated the background compilation process to use zrecompile instead of zcompile, ensuring compatibility and improved functionality.

Ubuntu-specific enhancements:

  • Added a check for Ubuntu-based systems in /etc/os-release to set skip_global_compinit, optimizing behavior for Ubuntu environments.

General improvements:

  • Replaced manual autoload with builtin autoload for compinit and zrecompile, ensuring more robust and explicit handling of shell builtins.

ss-o added 2 commits August 8, 2023 10:58
…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>
@ss-o
ss-o requested a review from a team as a code owner June 15, 2025 11:34
ss-o and others added 8 commits June 15, 2025 12:34
…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>
@ss-o ss-o closed this Jun 16, 2025
@ss-o
ss-o deleted the perf-zicompinit-fast branch June 20, 2025 21:20
@github-actions

Copy link
Copy Markdown

Pull Request closed and locked due to lack of activity.
If you'd like to build on this closed PR, you can clone it using this method: https://stackoverflow.com/a/14969986
Then open a new PR, referencing this closed PR in your message.

@github-actions github-actions Bot locked and limited conversation to collaborators Jun 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant