この辺りが参考になるのでは? http://rcmdnk.github.io/blog/2015/05/15/computer-linux-mac-zsh/
他の型のプロファイル結果と見比べると、 compaudit
が以上に大きい気がしております。
しかし、zshrcにはcompauditの記述を特にしておらず、これが本質的な原因かどうかはわかりません。。。
宜しくお願いします。
num calls time self name ----------------------------------------------------------------------------------- 1) 2 32.98 16.49 42.44% 32.98 16.49 42.44% compaudit 2) 1 59.54 59.54 76.62% 26.56 26.56 34.18% compinit 3) 2 6.48 3.24 8.34% 6.48 3.24 8.34% env_default 4) 2 6.19 3.09 7.96% 6.19 3.09 7.96% grep-flag-available 5) 16 2.29 0.14 2.95% 2.29 0.14 2.95% compdef 6) 1 2.01 2.01 2.59% 2.01 2.01 2.59% colors 7) 1 1.11 1.11 1.43% 1.11 1.11 1.43% is-at-least 8) 2 0.08 0.04 0.10% 0.08 0.04 0.10% is_plugin ----------------------------------------------------------------------------------- 2) 1 59.54 59.54 76.62% 26.56 26.56 34.18% compinit 1/2 32.98 32.98 42.44% 0.99 0.99 compaudit [1] ----------------------------------------------------------------------------------- 1/2 32.98 32.98 42.44% 0.99 0.99 compinit [2] 1/2 31.99 31.99 41.17% 31.99 31.99 compaudit [1] 1) 2 32.98 16.49 42.44% 32.98 16.49 42.44% compaudit 1/2 31.99 31.99 41.17% 31.99 31.99 compaudit [1] ----------------------------------------------------------------------------------- 3) 2 6.48 3.24 8.34% 6.48 3.24 8.34% env_default ----------------------------------------------------------------------------------- 4) 2 6.19 3.09 7.96% 6.19 3.09 7.96% grep-flag-available ----------------------------------------------------------------------------------- 5) 16 2.29 0.14 2.95% 2.29 0.14 2.95% compdef ----------------------------------------------------------------------------------- 6) 1 2.01 2.01 2.59% 2.01 2.01 2.59% colors ----------------------------------------------------------------------------------- 7) 1 1.11 1.11 1.43% 1.11 1.11 1.43% is-at-least 8) 2 0.08 0.04 0.10% 0.08 0.04 0.10% is_plugin
for i in $(seq 1 10); do time zsh -i -c exit; done zsh -i -c exit 0.63s user 0.35s system 95% cpu 1.033 total zsh -i -c exit 0.63s user 0.34s system 98% cpu 0.994 total zsh -i -c exit 0.66s user 0.35s system 98% cpu 1.037 total zsh -i -c exit 0.64s user 0.34s system 98% cpu 0.989 total zsh -i -c exit 0.64s user 0.35s system 98% cpu 1.002 total zsh -i -c exit 0.63s user 0.35s system 99% cpu 0.981 total zsh -i -c exit 0.63s user 0.34s system 98% cpu 0.980 total zsh -i -c exit 0.65s user 0.35s system 98% cpu 1.012 total zsh -i -c exit 0.63s user 0.35s system 98% cpu 0.986 total zsh -i -c exit 0.63s user 0.34s system 98% cpu 0.982 total
あなたの回答
tips
プレビュー