-
-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Very slow #15
Comments
I suspect the problem may be the oh-my-zsh plugins. Try commenting them out of your I've been considering yanking the o-m-z plugins from the starter kit anyway, so let me know whether that helps. It's still faster than o-m-z 😀 at least. |
Ok, I copied the content of load-starter-plugin-list from .zgen-setup to a new .zgen-local-plugins file, then commented all loads of oh-my-zsh plugins. Also, I find that the omz plugins are what make zsh great to use. If I cannot have all the shortcuts and autocompletion features provided by all these plugins (aws, git, tmux, etc), the usefulness is limited ^^ I'm wondering why we cannot load plugins in deferred (give the user his shell asap with the strict minimum, then load other plugins afterwards). Do you have any idea about that? Thanks for the quick answers :) |
At some point I need to do a binary search and figure out which plugins are the slow ones. What hardware are you running where it is taking more than a second to load? |
Currently running on a Mac mini (Late 2014) with 2.6GHz Intel Core i5 and 8GB 1600MHz DDR3. Thank you @unixorn, I look forward to your profiling. Sorry I don't have time to do it myself ^^' |
I'm unlikely to find time for it anytime soon, unfortunately. |
If this is still an issue I’ve got a timing and latency zsh dingus you can test with. |
That timer sounds interesting, please send me a link so I can look at timing some of this stuff. |
OMG, I |
zgen-update takes most of the time. I tried this setup with zinit (turbo mode) instead of zgen and zsh takes ~0.2 sec to start. Pros
Cons
other details
|
I am having this problem as well. Any chance of working on this one? I commented out everything that was Mac related still seams slower. |
It's taken me forever to get to it, but I'm working on switching the quickstart kit to use zgenom instead of zgen. zgenom is getting maintenance, and relevant to this issue, optionally adds precompilation for the zsh plugin files that it loads. If you're interested in trying it, please switch your clone to the switch-to-zgenom branch, and comment here or on the PR (#88) if you run into issues. I'm hoping to make this go live 2020-11-21 at the latest. |
I switched over to the new branch and I am encountering this error on an Apple Silicon Big Sur OS: .zgen-setup updated; creating a new init.zsh from plugin list in zsh-quickstart-kit/zsh/.zgen-setup When troubleshooting locally I came across this issue: ohmyzsh/ohmyzsh#6723 and I made a modification to .zsh_functions:90 by adding the keyword function: function procs_for_path() {
for pid in $(lsof "$@" | cut -d' ' -f 3 | sort | uniq)
do
ps -f -p $pid
done
} This suppressed the errors. Should all of the functions be explicitly defined this way to protect from alias expansion? |
I got the same errors as this last post. Following to see the response given. /home/thechosenone/.zsh_functions:90: defining function based on alias adding the functions per above fixed the error. |
I'm not sure why GH hasn't been notifying me of updates to this issue. I don't have an M1 to test on. Declaring all functions with |
I installed zsh-quickstart-kit with spf13, and the loading time is very slow. I haven't customized it, so it appears to be the default setting that slows down my system.
Using iTerm2 on OS X 10.11.
I was hoping that zgen would solve slowliness issues I was experiencing with antigen, but that's not the case. Do you have any recommendations for speeding up the system?
The text was updated successfully, but these errors were encountered: