Closed betaboon closed 5 years ago
Actually trying to solve the issue here: Git prompt is disappeared in every other render in attached working folder. Also facing slowness. alien-demo.zip
Figured it out. It was a problem with my python installation. Some aliases (that used python scripts) causing the problem.
Now just looking for a way to make a bit faster.
@eendroroy has the git-prompt been faster before my PRs ?
Not really. There is no noticeable lag after your PRs. It's just that the theme was slower than I expected from beginning for comparatively large repos. I was hoping to make it bit faster before any new release.
I'm getting these results on a bigger repo.
alien_prompt_section_exit 1ms
alien_prompt_section_user 2ms
alien_prompt_section_path 1ms
alien_prompt_section_vcs_branch 8ms
alien_prompt_section_vcs_status 77ms
alien_prompt_section_vcs_dirty 139ms
alien_prompt_section_newline 0ms
alien_prompt_section_venv 2ms
alien_prompt_section_ssh 1ms
alien_prompt_section_prompt 1ms
so as an indicator the vcs_status and vcs_dirty are especially slow.
adding the following line directly above the call of $__section_function
in modules/prompt.zsh
TIMEFMT="$__section_function %mE"; { time ($__section_function);} 2>>/tmp/alien.log
Probably the issue needs to fixed in the core repo: promptlib-zsh
BTW, I have created a new release 2.0.0
Maybe after all the changes lately it would be a good idea to tag a new minor release ?