forked from simnalamburt/shellder
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Most zsh themes were always way too slow with MSYS2. This is optimization for you. Benchmarks were performed under i7-6770 + fairly good SSD 1. Remove redundant `parse_git_dirty` function call (~20ms) Function call of zsh takes too much time in msys2. Don't know why. 2. Do not perform redundant action whenever possible (~10ms) Pushed everything possible inside `if` statement. 3. Disable `vcs_info get-revision` (~20ms) It doesn't even use this flag. 4. Disable `vcs_info` when $MSYS2 in on (~300ms) Diretory lookup takes too much time with NTFS. 5. Don't double check for git repo (~20ms) `git rev-parse --git-dir` is superset of `git rev-parse --is-inside-work-tree` Closes simnalamburt#2
- Loading branch information
1 parent
6e42a47
commit 664e008
Showing
1 changed file
with
34 additions
and
30 deletions.
There are no files selected for viewing
This file contains 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