Closed Kyure-A closed 1 year ago
compinit が遅い理由が判明したので c2c3bdc で fix した (compinit -C
に書き換えるだけ)
参考にした Reddit:
https://www.reddit.com/r/zsh/comments/ycm6fa/troubleshooting_slow_compinit_on_macos/
こうなった
num calls time self name
-----------------------------------------------------------------------------------
1) 9 1570.70 174.52 62.50% 998.97 111.00 39.75% __zplug::core::load::as_plugin
2) 2 666.61 333.30 26.52% 666.61 333.30 26.52% compaudit
3) 1 548.41 548.41 21.82% 548.41 548.41 21.82% anyframe-init
4) 1 73.00 73.00 2.90% 72.33 72.33 2.88% __zplug::log::write::info
5) 13 56.11 4.32 2.23% 48.50 3.73 1.93% __zplug::core::sources::call
6) 2 706.83 353.42 28.13% 40.22 20.11 1.60% compinit
7) 12 68.43 5.70 2.72% 17.31 1.44 0.69% __zplug::core::sources::use_default
8) 12 86.66 7.22 3.45% 13.04 1.09 0.52% __zplug::core::add::to_zplugs
9) 1 34.18 34.18 1.36% 9.90 9.90 0.39% __zplug::core::core::prepare
10) 3 11.23 3.74 0.45% 7.72 2.57 0.31% __zplug::core::core::get_interfaces
11) 13 7.49 0.58 0.30% 7.49 0.58 0.30% github.zsh
12) 2 7.06 3.53 0.28% 7.06 3.53 0.28% __zplug::sources::github::check
13) 1 6.74 6.74 0.27% 6.60 6.60 0.26% _zsh_highlight_load_highlighters
14) 1 6.59 6.59 0.26% 6.59 6.59 0.26% __zplug::utils::awk::available
15) 3 14.20 4.73 0.57% 6.52 2.17 0.26% __check__
16) 1 5.70 5.70 0.23% 5.60 5.60 0.22% __zplug::base::base::git_version
17) 7 14.23 2.03 0.57% 4.84 0.69 0.19% __zplug::base
18) 1 4.58 4.58 0.18% 4.58 4.58 0.18% __zplug::core::cache::diff
19) 1 4.35 4.35 0.17% 4.35 4.35 0.17% _history-substring-search-function-callable
20) 5 4.08 0.82 0.16% 4.02 0.80 0.16% add-zle-hook-widget
21) 4 3.57 0.89 0.14% 3.57 0.89 0.14% is-at-least
22) 30 3.51 0.12 0.14% 3.51 0.12 0.14% regexp-replace
23) 2 2.88 1.44 0.11% 2.88 1.44 0.11% (anon) [/home/kyre/.zplug/repos/yuki-yano/zeno.zsh/zeno.zsh:9]
24) 1 2261.40 2261.40 89.98% 2.58 2.58 0.10% __zplug::core::load::from_cache
25) 2 2.11 1.06 0.08% 2.11 1.06 0.08% colors
26) 1 1.70 1.70 0.07% 1.70 1.70 0.07% load.zsh
27) 2 1.63 0.82 0.06% 1.63 0.82 0.06% predict-on
28) 6 0.99 0.16 0.04% 0.99 0.16 0.04% add-zsh-hook
29) 16 2368.66 148.04 94.25% 0.94 0.06 0.04% zplug
30) 1 0.74 0.74 0.03% 0.74 0.74 0.03% async_init
31) 1 0.67 0.67 0.03% 0.67 0.67 0.03% __zplug::job::handle::flock
32) 1 0.62 0.62 0.02% 0.62 0.62 0.02% git.zsh
33) 1 0.59 0.59 0.02% 0.59 0.59 0.02% theme.zsh
34) 1 11.86 11.86 0.47% 0.53 0.53 0.02% __zplug::core::core::variable
35) 1 0.49 0.49 0.02% 0.49 0.49 0.02% handle.zsh
36) 17 0.47 0.03 0.02% 0.47 0.03 0.02% __zplug::core::sources::is_exists
37) 4 2281.06 570.27 90.77% 0.44 0.11 0.02% __zplug::core::core::run_interfaces
38) 1 2266.42 2266.42 90.18% 0.42 0.42 0.02% __load__
39) 1 0.37 0.37 0.01% 0.37 0.37 0.01% core.zsh
40) 1 0.37 0.37 0.01% 0.37 0.37 0.01% shell.zsh
41) 1 0.35 0.35 0.01% 0.35 0.35 0.01% (anon) [/home/kyre/.zplug/repos/zsh-users/zsh-autosuggestions/zsh-autosuggestions.zsh:458]
42) 2 0.35 0.17 0.01% 0.35 0.17 0.01% print.zsh
43) 2 0.31 0.16 0.01% 0.31 0.16 0.01% prezto.zsh
44) 2 0.30 0.15 0.01% 0.30 0.15 0.01% gh-r.zsh
45) 4 0.39 0.10 0.02% 0.28 0.07 0.01% __zplug::core::sources::is_handler_defined
46) 1 0.28 0.28 0.01% 0.28 0.28 0.01% oh-my-zsh.zsh
47) 1 0.28 0.28 0.01% 0.28 0.28 0.01% cache.zsh
48) 1 0.23 0.23 0.01% 0.23 0.23 0.01% releases.zsh
49) 2 7.44 3.72 0.30% 0.22 0.11 0.01% __zplug::core::sources::use_handler
50) 1 0.22 0.22 0.01% 0.22 0.22 0.01% parallel.zsh
51) 1 0.21 0.21 0.01% 0.21 0.21 0.01% base.zsh
52) 1 0.21 0.21 0.01% 0.21 0.21 0.01% compdef
53) 1 0.21 0.21 0.01% 0.21 0.21 0.01% self.zsh
54) 12 0.20 0.02 0.01% 0.20 0.02 0.01% __zplug::base::base::is_cli
55) 1 0.20 0.20 0.01% 0.20 0.20 0.01% __zplug::core::interface::expose
56) 1 0.17 0.17 0.01% 0.17 0.17 0.01% file.zsh
57) 2 0.16 0.08 0.01% 0.16 0.08 0.01% __zplug::base::base::version_requirement
58) 1 0.15 0.15 0.01% 0.15 0.15 0.01% migration.zsh
59) 1 0.15 0.15 0.01% 0.15 0.15 0.01% sources.zsh
60) 1 0.32 0.32 0.01% 0.13 0.13 0.01% __zplug::core::cache::update
61) 1 0.13 0.13 0.01% 0.13 0.13 0.01% options.zsh
62) 1 0.12 0.12 0.00% 0.12 0.12 0.00% add.zsh
63) 1 0.10 0.10 0.00% 0.10 0.10 0.00% hook.zsh
64) 1 0.10 0.10 0.00% 0.10 0.10 0.00% yaml.zsh
65) 1 0.09 0.09 0.00% 0.09 0.09 0.00% arguments.zsh
66) 1 0.09 0.09 0.00% 0.09 0.09 0.00% awk.zsh
67) 1 0.09 0.09 0.00% 0.09 0.09 0.00% rollback.zsh
68) 1 0.08 0.08 0.00% 0.08 0.08 0.00% tags.zsh
69) 1 0.08 0.08 0.00% 0.08 0.08 0.00% message.zsh
70) 1 0.54 0.54 0.02% 0.08 0.08 0.00% polling.zsh
71) 1 0.14 0.14 0.01% 0.08 0.08 0.00% __zplug::base::base::zsh_version
72) 1 0.08 0.08 0.00% 0.08 0.08 0.00% capture.zsh
73) 1 0.07 0.07 0.00% 0.07 0.07 0.00% omz.zsh
74) 1 0.07 0.07 0.00% 0.07 0.07 0.00% (anon) [/usr/share/zsh/functions/Misc/add-zle-hook-widget:28]
75) 1 0.07 0.07 0.00% 0.07 0.07 0.00% bitbucket.zsh
76) 1 0.06 0.06 0.00% 0.06 0.06 0.00% _zsh_highlight__is_function_p
77) 1 0.06 0.06 0.00% 0.06 0.06 0.00% gist.zsh
78) 1 0.06 0.06 0.00% 0.06 0.06 0.00% format.zsh
79) 1 73.06 73.06 2.91% 0.06 0.06 0.00% __zplug::io::file::load
80) 1 0.06 0.06 0.00% 0.06 0.06 0.00% process.zsh
81) 1 0.18 0.18 0.01% 0.06 0.06 0.00% _zsh_highlight__function_callable_p
82) 1 0.06 0.06 0.00% 0.06 0.06 0.00% gitlab.zsh
83) 1 0.06 0.06 0.00% 0.06 0.06 0.00% local.zsh
84) 1 0.05 0.05 0.00% 0.05 0.05 0.00% _zsh_highlight__function_is_autoload_stub_p
85) 1 0.05 0.05 0.00% 0.05 0.05 0.00% write.zsh
86) 1 0.05 0.05 0.00% 0.05 0.05 0.00% queue.zsh
87) 1 0.78 0.78 0.03% 0.04 0.04 0.00% async
88) 1 0.04 0.04 0.00% 0.04 0.04 0.00% commands.zsh
89) 1 5.86 5.86 0.23% 0.04 0.04 0.00% __zplug::core::tags::get
90) 1 0.03 0.03 0.00% 0.03 0.03 0.00% ansi.zsh
91) 1 0.03 0.03 0.00% 0.03 0.03 0.00% interface.zsh
92) 1 2.05 2.05 0.08% 0.03 0.03 0.00% __zplug::core::options::get
93) 1 3.42 3.42 0.14% 0.03 0.03 0.00% __zplug::core::commands::get
94) 1 0.02 0.02 0.00% 0.02 0.02 0.00% __zplug::core::load::prepare
95) 1 0.01 0.01 0.00% 0.01 0.01 0.00% __starship_get_time
96) 1 0.00 0.00 0.00% 0.00 0.00 0.00% _zsh_highlight_bind_widgets
sheldon を使って見るので、使う前に測定
num calls time self name
-----------------------------------------------------------------------------------
1) 1 408.47 408.47 32.53% 408.47 408.47 32.53% __zplug::utils::awk::available
2) 1 262.49 262.49 20.90% 261.35 261.35 20.81% __zplug::log::write::info
3) 1 199.28 199.28 15.87% 199.22 199.22 15.86% __zplug::base::base::git_version
4) 1 165.44 165.44 13.17% 165.44 165.44 13.17% compdump
5) 3 307.17 102.39 24.46% 65.52 21.84 5.22% compinit
6) 786 45.82 0.06 3.65% 45.82 0.06 3.65% compdef
7) 2 30.39 15.19 2.42% 30.39 15.19 2.42% compaudit
8) 10 35.29 3.53 2.81% 16.42 1.64 1.31% __zplug::core::sources::use_default
9) 11 21.69 1.97 1.73% 15.82 1.44 1.26% __zplug::core::sources::call
10) 10 50.15 5.01 3.99% 11.94 1.19 0.95% __zplug::core::add::to_zplugs
11) 1 631.44 631.44 50.28% 9.87 9.87 0.79% __zplug::core::core::prepare
12) 11 5.30 0.48 0.42% 5.30 0.48 0.42% github.zsh
13) 3 4.30 1.43 0.34% 2.72 0.91 0.22% __zplug::core::core::get_interfaces
14) 1 2.64 2.64 0.21% 2.64 2.64 0.21% __zplug::core::cache::diff
15) 7 6.40 0.91 0.51% 1.95 0.28 0.16% __zplug::base
16) 30 1.58 0.05 0.13% 1.58 0.05 0.13% regexp-replace
17) 2 1.28 0.64 0.10% 1.28 0.64 0.10% colors
18) 1 1.13 1.13 0.09% 1.13 1.13 0.09% __zplug::job::handle::flock
19) 1 290.51 290.51 23.13% 0.73 0.73 0.06% __zplug::core::load::from_cache
20) 2 0.53 0.27 0.04% 0.53 0.27 0.04% gh-r.zsh
21) 12 344.66 28.72 27.45% 0.53 0.04 0.04% zplug
22) 1 293.67 293.67 23.39% 0.48 0.48 0.04% __load__
23) 1 0.69 0.69 0.05% 0.48 0.48 0.04% __zplug::core::cache::update
24) 3 0.44 0.15 0.03% 0.44 0.15 0.03% add-zsh-hook
25) 11 0.37 0.03 0.03% 0.37 0.03 0.03% __zplug::core::sources::is_exists
26) 1 4.71 4.71 0.38% 0.37 0.37 0.03% __zplug::core::core::variable
27) 1 0.35 0.35 0.03% 0.35 0.35 0.03% git.zsh
28) 1 0.30 0.30 0.02% 0.30 0.30 0.02% handle.zsh
29) 2 0.28 0.14 0.02% 0.28 0.14 0.02% predict-on
30) 1 0.27 0.27 0.02% 0.27 0.27 0.02% theme.zsh
31) 1 0.26 0.26 0.02% 0.26 0.26 0.02% core.zsh
32) 1 0.21 0.21 0.02% 0.21 0.21 0.02% __zplug::core::interface::expose
33) 1 0.20 0.20 0.02% 0.20 0.20 0.02% load.zsh
34) 1 0.18 0.18 0.01% 0.18 0.18 0.01% shell.zsh
35) 1 0.18 0.18 0.01% 0.18 0.18 0.01% oh-my-zsh.zsh
36) 1 0.18 0.18 0.01% 0.18 0.18 0.01% cache.zsh
37) 2 0.18 0.09 0.01% 0.18 0.09 0.01% prezto.zsh
38) 1 0.18 0.18 0.01% 0.18 0.18 0.01% __check__
39) 1 0.16 0.16 0.01% 0.16 0.16 0.01% base.zsh
40) 1 0.16 0.16 0.01% 0.16 0.16 0.01% releases.zsh
41) 2 0.15 0.08 0.01% 0.15 0.08 0.01% print.zsh
42) 2 293.99 146.99 23.41% 0.15 0.07 0.01% __zplug::core::core::run_interfaces
43) 1 0.14 0.14 0.01% 0.14 0.14 0.01% parallel.zsh
44) 10 0.10 0.01 0.01% 0.10 0.01 0.01% __zplug::base::base::is_cli
45) 2 0.09 0.04 0.01% 0.09 0.04 0.01% __zplug::base::base::version_requirement
46) 1 0.08 0.08 0.01% 0.08 0.08 0.01% add.zsh
47) 1 0.06 0.06 0.00% 0.06 0.06 0.00% awk.zsh
48) 1 0.06 0.06 0.00% 0.06 0.06 0.00% self.zsh
49) 1 0.06 0.06 0.00% 0.06 0.06 0.00% arguments.zsh
50) 1 0.05 0.05 0.00% 0.05 0.05 0.00% capture.zsh
51) 1 0.05 0.05 0.00% 0.05 0.05 0.00% rollback.zsh
52) 1 0.05 0.05 0.00% 0.05 0.05 0.00% hook.zsh
53) 1 0.05 0.05 0.00% 0.05 0.05 0.00% message.zsh
54) 1 0.05 0.05 0.00% 0.05 0.05 0.00% options.zsh
55) 1 0.05 0.05 0.00% 0.05 0.05 0.00% sources.zsh
56) 1 0.04 0.04 0.00% 0.04 0.04 0.00% gist.zsh
57) 1 0.04 0.04 0.00% 0.04 0.04 0.00% format.zsh
58) 1 0.04 0.04 0.00% 0.04 0.04 0.00% yaml.zsh
59) 1 262.53 262.53 20.91% 0.04 0.04 0.00% __zplug::io::file::load
60) 1 0.04 0.04 0.00% 0.04 0.04 0.00% omz.zsh
61) 1 0.04 0.04 0.00% 0.04 0.04 0.00% file.zsh
62) 1 0.04 0.04 0.00% 0.04 0.04 0.00% migration.zsh
63) 1 0.04 0.04 0.00% 0.04 0.04 0.00% process.zsh
64) 1 0.04 0.04 0.00% 0.04 0.04 0.00% bitbucket.zsh
65) 1 0.03 0.03 0.00% 0.03 0.03 0.00% gitlab.zsh
66) 1 0.32 0.32 0.03% 0.03 0.03 0.00% polling.zsh
67) 1 0.03 0.03 0.00% 0.03 0.03 0.00% local.zsh
68) 1 0.03 0.03 0.00% 0.03 0.03 0.00% __zplug::core::load::prepare
69) 1 0.03 0.03 0.00% 0.03 0.03 0.00% queue.zsh
70) 1 0.02 0.02 0.00% 0.02 0.02 0.00% commands.zsh
71) 1 0.02 0.02 0.00% 0.02 0.02 0.00% tags.zsh
72) 1 0.02 0.02 0.00% 0.02 0.02 0.00% write.zsh
73) 1 1.33 1.33 0.11% 0.02 0.02 0.00% __zplug::core::options::get
74) 1 0.02 0.02 0.00% 0.02 0.02 0.00% ansi.zsh
75) 1 0.01 0.01 0.00% 0.01 0.01 0.00% interface.zsh
76) 1 0.01 0.01 0.00% 0.01 0.01 0.00% __starship_get_time
77) 1 1.77 1.77 0.14% 0.01 0.01 0.00% __zplug::core::tags::get
78) 1 1.24 1.24 0.10% 0.01 0.01 0.00% __zplug::core::commands::get
79) 1 0.04 0.04 0.00% 0.01 0.01 0.00% __zplug::base::base::zsh_version
-----------------------------------------------------------------------------------
11) 1 631.44 631.44 50.28% 9.87 9.87 0.79% __zplug::core::core::prepare
1/1 0.04 0.04 0.00% 0.01 0.01 __zplug::base::base::zsh_version [79]
1/1 4.71 4.71 0.38% 0.37 0.37 __zplug::core::core::variable [26]
1/3 9.06 9.06 0.72% 9.06 9.06 compinit [5]
1/1 199.28 199.28 15.87% 199.22 199.22 __zplug::base::base::git_version [3]
1/1 408.47 408.47 32.53% 408.47 408.47 __zplug::utils::awk::available [1]
-----------------------------------------------------------------------------------
1/1 408.47 408.47 32.53% 408.47 408.47 __zplug::core::core::prepare [11]
1) 1 408.47 408.47 32.53% 408.47 408.47 32.53% __zplug::utils::awk::available
-----------------------------------------------------------------------------------
21) 12 344.66 28.72 27.45% 0.53 0.04 0.04% zplug
10/10 50.15 5.01 3.99% 11.94 1.19 __zplug::core::add::to_zplugs [10]
2/2 293.99 146.99 23.41% 0.15 0.07 __zplug::core::core::run_interfaces [42]
-----------------------------------------------------------------------------------
1/3 289.10 289.10 23.02% 47.45 47.45 __zplug::core::load::from_cache [19]
1/3 9.06 9.06 0.72% 9.06 9.06 __zplug::core::core::prepare [11]
5) 3 307.17 102.39 24.46% 65.52 21.84 5.22% compinit
1/2 30.39 30.39 2.42% 0.43 0.43 compaudit [7]
786/786 45.82 0.06 3.65% 45.82 0.06 compdef [6]
1/1 165.44 165.44 13.17% 165.44 165.44 compdump [4]
-----------------------------------------------------------------------------------
2/2 293.99 146.99 23.41% 0.15 0.07 zplug [21]
42) 2 293.99 146.99 23.41% 0.15 0.07 0.01% __zplug::core::core::run_interfaces
1/1 0.18 0.18 0.01% 0.18 0.18 __check__ [38]
1/1 293.67 293.67 23.39% 0.48 0.48 __load__ [22]
-----------------------------------------------------------------------------------
1/1 293.67 293.67 23.39% 0.48 0.48 __zplug::core::core::run_interfaces [42]
22) 1 293.67 293.67 23.39% 0.48 0.48 0.04% __load__
1/1 0.03 0.03 0.00% 0.03 0.03 __zplug::core::load::prepare [68]
1/1 2.64 2.64 0.21% 2.64 2.64 __zplug::core::cache::diff [14]
1/1 290.51 290.51 23.13% 0.73 0.73 __zplug::core::load::from_cache [19]
-----------------------------------------------------------------------------------
1/1 290.51 290.51 23.13% 0.73 0.73 __load__ [22]
19) 1 290.51 290.51 23.13% 0.73 0.73 0.06% __zplug::core::load::from_cache
1/1 0.69 0.69 0.05% 0.48 0.48 __zplug::core::cache::update [23]
1/3 289.10 289.10 23.02% 47.45 47.45 compinit [5]
-----------------------------------------------------------------------------------
59) 1 262.53 262.53 20.91% 0.04 0.04 0.00% __zplug::io::file::load
1/1 262.49 262.49 20.90% 261.35 261.35 __zplug::log::write::info [2]
-----------------------------------------------------------------------------------
1/1 262.49 262.49 20.90% 261.35 261.35 __zplug::io::file::load [59]
2) 1 262.49 262.49 20.90% 261.35 261.35 20.81% __zplug::log::write::info
1/1 1.13 1.13 0.09% 1.13 1.13 __zplug::job::handle::flock [18]
-----------------------------------------------------------------------------------
1/1 199.28 199.28 15.87% 199.22 199.22 __zplug::core::core::prepare [11]
3) 1 199.28 199.28 15.87% 199.22 199.22 15.86% __zplug::base::base::git_version
1/2 0.06 0.06 0.00% 0.06 0.06 __zplug::base::base::version_requirement [45]
-----------------------------------------------------------------------------------
1/1 165.44 165.44 13.17% 165.44 165.44 compinit [5]
4) 1 165.44 165.44 13.17% 165.44 165.44 13.17% compdump
-----------------------------------------------------------------------------------
10/10 50.15 5.01 3.99% 11.94 1.19 zplug [21]
10) 10 50.15 5.01 3.99% 11.94 1.19 0.95% __zplug::core::add::to_zplugs
10/10 0.10 0.01 0.01% 0.10 0.01 __zplug::base::base::is_cli [44]
1/11 2.82 2.82 0.22% 2.29 2.29 __zplug::core::sources::call [9]
10/10 35.29 3.53 2.81% 16.42 1.64 __zplug::core::sources::use_default [8]
-----------------------------------------------------------------------------------
786/786 45.82 0.06 3.65% 45.82 0.06 compinit [5]
6) 786 45.82 0.06 3.65% 45.82 0.06 3.65% compdef
-----------------------------------------------------------------------------------
10/10 35.29 3.53 2.81% 16.42 1.64 __zplug::core::add::to_zplugs [10]
8) 10 35.29 3.53 2.81% 16.42 1.64 1.31% __zplug::core::sources::use_default
10/11 18.87 1.89 1.50% 13.53 1.35 __zplug::core::sources::call [9]
-----------------------------------------------------------------------------------
1/2 30.39 30.39 2.42% 0.43 0.43 compinit [5]
1/2 29.96 29.96 2.39% 29.96 29.96 compaudit [7]
7) 2 30.39 15.19 2.42% 30.39 15.19 2.42% compaudit
1/2 29.96 29.96 2.39% 29.96 29.96 compaudit [7]
-----------------------------------------------------------------------------------
10/11 18.87 1.89 1.50% 13.53 1.35 __zplug::core::sources::use_default [8]
1/11 2.82 2.82 0.22% 2.29 2.29 __zplug::core::add::to_zplugs [10]
9) 11 21.69 1.97 1.73% 15.82 1.44 1.26% __zplug::core::sources::call
11/11 0.37 0.03 0.03% 0.37 0.03 __zplug::core::sources::is_exists [25]
1/2 0.47 0.47 0.04% 0.47 0.47 gh-r.zsh [20]
10/11 5.02 0.50 0.40% 5.02 0.50 github.zsh [12]
-----------------------------------------------------------------------------------
15) 7 6.40 0.91 0.51% 1.95 0.28 0.16% __zplug::base
1/1 0.01 0.01 0.00% 0.01 0.01 interface.zsh [75]
1/1 0.02 0.02 0.00% 0.02 0.02 ansi.zsh [74]
1/1 0.02 0.02 0.00% 0.02 0.02 write.zsh [72]
1/1 0.02 0.02 0.00% 0.02 0.02 tags.zsh [71]
1/1 0.02 0.02 0.00% 0.02 0.02 commands.zsh [70]
1/1 0.03 0.03 0.00% 0.03 0.03 queue.zsh [69]
1/1 0.03 0.03 0.00% 0.03 0.03 local.zsh [67]
1/1 0.03 0.03 0.00% 0.03 0.03 gitlab.zsh [65]
1/1 0.04 0.04 0.00% 0.04 0.04 bitbucket.zsh [64]
1/1 0.04 0.04 0.00% 0.04 0.04 process.zsh [63]
1/1 0.04 0.04 0.00% 0.04 0.04 migration.zsh [62]
1/1 0.04 0.04 0.00% 0.04 0.04 file.zsh [61]
1/1 0.04 0.04 0.00% 0.04 0.04 omz.zsh [60]
1/1 0.04 0.04 0.00% 0.04 0.04 yaml.zsh [58]
1/1 0.04 0.04 0.00% 0.04 0.04 format.zsh [57]
1/1 0.04 0.04 0.00% 0.04 0.04 gist.zsh [56]
1/1 0.05 0.05 0.00% 0.05 0.05 sources.zsh [55]
1/1 0.05 0.05 0.00% 0.05 0.05 options.zsh [54]
1/1 0.05 0.05 0.00% 0.05 0.05 message.zsh [53]
1/1 0.05 0.05 0.00% 0.05 0.05 hook.zsh [52]
1/1 0.05 0.05 0.00% 0.05 0.05 rollback.zsh [51]
1/1 0.05 0.05 0.00% 0.05 0.05 capture.zsh [50]
1/1 0.06 0.06 0.00% 0.06 0.06 arguments.zsh [49]
1/1 0.06 0.06 0.00% 0.06 0.06 self.zsh [48]
1/2 0.06 0.06 0.00% 0.06 0.06 gh-r.zsh [20]
1/1 0.06 0.06 0.00% 0.06 0.06 awk.zsh [47]
1/1 0.08 0.08 0.01% 0.08 0.08 add.zsh [46]
1/1 0.14 0.14 0.01% 0.14 0.14 parallel.zsh [43]
2/2 0.15 0.08 0.01% 0.15 0.08 print.zsh [41]
1/1 0.16 0.16 0.01% 0.16 0.16 releases.zsh [40]
1/1 0.16 0.16 0.01% 0.16 0.16 base.zsh [39]
2/2 0.18 0.09 0.01% 0.18 0.09 prezto.zsh [37]
1/1 0.18 0.18 0.01% 0.18 0.18 cache.zsh [36]
1/1 0.18 0.18 0.01% 0.18 0.18 oh-my-zsh.zsh [35]
1/1 0.18 0.18 0.01% 0.18 0.18 shell.zsh [34]
1/1 0.20 0.20 0.02% 0.20 0.20 load.zsh [33]
1/1 0.26 0.26 0.02% 0.26 0.26 core.zsh [31]
1/1 0.27 0.27 0.02% 0.27 0.27 theme.zsh [30]
1/11 0.28 0.28 0.02% 0.28 0.28 github.zsh [12]
1/1 0.30 0.30 0.02% 0.30 0.30 handle.zsh [28]
1/1 0.32 0.32 0.03% 0.03 0.03 polling.zsh [66]
1/1 0.35 0.35 0.03% 0.35 0.35 git.zsh [27]
-----------------------------------------------------------------------------------
10/11 5.02 0.50 0.40% 5.02 0.50 __zplug::core::sources::call [9]
1/11 0.28 0.28 0.02% 0.28 0.28 __zplug::base [15]
12) 11 5.30 0.48 0.42% 5.30 0.48 0.42% github.zsh
-----------------------------------------------------------------------------------
1/1 4.71 4.71 0.38% 0.37 0.37 __zplug::core::core::prepare [11]
26) 1 4.71 4.71 0.38% 0.37 0.37 0.03% __zplug::core::core::variable
1/1 1.24 1.24 0.10% 0.01 0.01 __zplug::core::commands::get [78]
1/1 1.33 1.33 0.11% 0.02 0.02 __zplug::core::options::get [73]
1/1 1.77 1.77 0.14% 0.01 0.01 __zplug::core::tags::get [77]
-----------------------------------------------------------------------------------
1/3 1.76 1.76 0.14% 1.23 1.23 __zplug::core::tags::get [77]
1/3 1.31 1.31 0.10% 0.69 0.69 __zplug::core::options::get [73]
1/3 1.23 1.23 0.10% 0.81 0.81 __zplug::core::commands::get [78]
13) 3 4.30 1.43 0.34% 2.72 0.91 0.22% __zplug::core::core::get_interfaces
30/30 1.58 0.05 0.13% 1.58 0.05 regexp-replace [16]
-----------------------------------------------------------------------------------
1/1 2.64 2.64 0.21% 2.64 2.64 __load__ [22]
14) 1 2.64 2.64 0.21% 2.64 2.64 0.21% __zplug::core::cache::diff
-----------------------------------------------------------------------------------
1/1 1.77 1.77 0.14% 0.01 0.01 __zplug::core::core::variable [26]
77) 1 1.77 1.77 0.14% 0.01 0.01 0.00% __zplug::core::tags::get
1/3 1.76 1.76 0.14% 1.23 1.23 __zplug::core::core::get_interfaces [13]
-----------------------------------------------------------------------------------
30/30 1.58 0.05 0.13% 1.58 0.05 __zplug::core::core::get_interfaces [13]
16) 30 1.58 0.05 0.13% 1.58 0.05 0.13% regexp-replace
-----------------------------------------------------------------------------------
1/1 1.33 1.33 0.11% 0.02 0.02 __zplug::core::core::variable [26]
73) 1 1.33 1.33 0.11% 0.02 0.02 0.00% __zplug::core::options::get
1/3 1.31 1.31 0.10% 0.69 0.69 __zplug::core::core::get_interfaces [13]
-----------------------------------------------------------------------------------
17) 2 1.28 0.64 0.10% 1.28 0.64 0.10% colors
-----------------------------------------------------------------------------------
1/1 1.24 1.24 0.10% 0.01 0.01 __zplug::core::core::variable [26]
78) 1 1.24 1.24 0.10% 0.01 0.01 0.00% __zplug::core::commands::get
1/3 1.23 1.23 0.10% 0.81 0.81 __zplug::core::core::get_interfaces [13]
-----------------------------------------------------------------------------------
1/1 1.13 1.13 0.09% 1.13 1.13 __zplug::log::write::info [2]
18) 1 1.13 1.13 0.09% 1.13 1.13 0.09% __zplug::job::handle::flock
-----------------------------------------------------------------------------------
1/1 0.69 0.69 0.05% 0.48 0.48 __zplug::core::load::from_cache [19]
23) 1 0.69 0.69 0.05% 0.48 0.48 0.04% __zplug::core::cache::update
1/1 0.21 0.21 0.02% 0.21 0.21 __zplug::core::interface::expose [32]
-----------------------------------------------------------------------------------
1/2 0.47 0.47 0.04% 0.47 0.47 __zplug::core::sources::call [9]
1/2 0.06 0.06 0.00% 0.06 0.06 __zplug::base [15]
20) 2 0.53 0.27 0.04% 0.53 0.27 0.04% gh-r.zsh
-----------------------------------------------------------------------------------
1/3 0.29 0.29 0.02% 0.29 0.29 polling.zsh [66]
24) 3 0.44 0.15 0.03% 0.44 0.15 0.03% add-zsh-hook
-----------------------------------------------------------------------------------
11/11 0.37 0.03 0.03% 0.37 0.03 __zplug::core::sources::call [9]
25) 11 0.37 0.03 0.03% 0.37 0.03 0.03% __zplug::core::sources::is_exists
-----------------------------------------------------------------------------------
1/1 0.35 0.35 0.03% 0.35 0.35 __zplug::base [15]
27) 1 0.35 0.35 0.03% 0.35 0.35 0.03% git.zsh
-----------------------------------------------------------------------------------
1/1 0.32 0.32 0.03% 0.03 0.03 __zplug::base [15]
66) 1 0.32 0.32 0.03% 0.03 0.03 0.00% polling.zsh
1/3 0.29 0.29 0.02% 0.29 0.29 add-zsh-hook [24]
-----------------------------------------------------------------------------------
1/1 0.30 0.30 0.02% 0.30 0.30 __zplug::base [15]
28) 1 0.30 0.30 0.02% 0.30 0.30 0.02% handle.zsh
-----------------------------------------------------------------------------------
1/2 0.02 0.02 0.00% 0.02 0.02 predict-on [29]
29) 2 0.28 0.14 0.02% 0.28 0.14 0.02% predict-on
1/2 0.02 0.02 0.00% 0.02 0.02 predict-on [29]
-----------------------------------------------------------------------------------
1/1 0.27 0.27 0.02% 0.27 0.27 __zplug::base [15]
30) 1 0.27 0.27 0.02% 0.27 0.27 0.02% theme.zsh
-----------------------------------------------------------------------------------
1/1 0.26 0.26 0.02% 0.26 0.26 __zplug::base [15]
31) 1 0.26 0.26 0.02% 0.26 0.26 0.02% core.zsh
-----------------------------------------------------------------------------------
1/1 0.21 0.21 0.02% 0.21 0.21 __zplug::core::cache::update [23]
32) 1 0.21 0.21 0.02% 0.21 0.21 0.02% __zplug::core::interface::expose
-----------------------------------------------------------------------------------
1/1 0.20 0.20 0.02% 0.20 0.20 __zplug::base [15]
33) 1 0.20 0.20 0.02% 0.20 0.20 0.02% load.zsh
-----------------------------------------------------------------------------------
1/1 0.18 0.18 0.01% 0.18 0.18 __zplug::base [15]
34) 1 0.18 0.18 0.01% 0.18 0.18 0.01% shell.zsh
-----------------------------------------------------------------------------------
1/1 0.18 0.18 0.01% 0.18 0.18 __zplug::base [15]
35) 1 0.18 0.18 0.01% 0.18 0.18 0.01% oh-my-zsh.zsh
-----------------------------------------------------------------------------------
1/1 0.18 0.18 0.01% 0.18 0.18 __zplug::base [15]
36) 1 0.18 0.18 0.01% 0.18 0.18 0.01% cache.zsh
-----------------------------------------------------------------------------------
2/2 0.18 0.09 0.01% 0.18 0.09 __zplug::base [15]
37) 2 0.18 0.09 0.01% 0.18 0.09 0.01% prezto.zsh
-----------------------------------------------------------------------------------
1/1 0.18 0.18 0.01% 0.18 0.18 __zplug::core::core::run_interfaces [42]
38) 1 0.18 0.18 0.01% 0.18 0.18 0.01% __check__
-----------------------------------------------------------------------------------
1/1 0.16 0.16 0.01% 0.16 0.16 __zplug::base [15]
39) 1 0.16 0.16 0.01% 0.16 0.16 0.01% base.zsh
-----------------------------------------------------------------------------------
1/1 0.16 0.16 0.01% 0.16 0.16 __zplug::base [15]
40) 1 0.16 0.16 0.01% 0.16 0.16 0.01% releases.zsh
-----------------------------------------------------------------------------------
2/2 0.15 0.08 0.01% 0.15 0.08 __zplug::base [15]
41) 2 0.15 0.08 0.01% 0.15 0.08 0.01% print.zsh
-----------------------------------------------------------------------------------
1/1 0.14 0.14 0.01% 0.14 0.14 __zplug::base [15]
43) 1 0.14 0.14 0.01% 0.14 0.14 0.01% parallel.zsh
-----------------------------------------------------------------------------------
10/10 0.10 0.01 0.01% 0.10 0.01 __zplug::core::add::to_zplugs [10]
44) 10 0.10 0.01 0.01% 0.10 0.01 0.01% __zplug::base::base::is_cli
-----------------------------------------------------------------------------------
1/2 0.06 0.06 0.00% 0.06 0.06 __zplug::base::base::git_version [3]
1/2 0.03 0.03 0.00% 0.03 0.03 __zplug::base::base::zsh_version [79]
45) 2 0.09 0.04 0.01% 0.09 0.04 0.01% __zplug::base::base::version_requirement
-----------------------------------------------------------------------------------
1/1 0.08 0.08 0.01% 0.08 0.08 __zplug::base [15]
46) 1 0.08 0.08 0.01% 0.08 0.08 0.01% add.zsh
-----------------------------------------------------------------------------------
1/1 0.06 0.06 0.00% 0.06 0.06 __zplug::base [15]
47) 1 0.06 0.06 0.00% 0.06 0.06 0.00% awk.zsh
-----------------------------------------------------------------------------------
1/1 0.06 0.06 0.00% 0.06 0.06 __zplug::base [15]
48) 1 0.06 0.06 0.00% 0.06 0.06 0.00% self.zsh
-----------------------------------------------------------------------------------
1/1 0.06 0.06 0.00% 0.06 0.06 __zplug::base [15]
49) 1 0.06 0.06 0.00% 0.06 0.06 0.00% arguments.zsh
-----------------------------------------------------------------------------------
1/1 0.05 0.05 0.00% 0.05 0.05 __zplug::base [15]
50) 1 0.05 0.05 0.00% 0.05 0.05 0.00% capture.zsh
-----------------------------------------------------------------------------------
1/1 0.05 0.05 0.00% 0.05 0.05 __zplug::base [15]
51) 1 0.05 0.05 0.00% 0.05 0.05 0.00% rollback.zsh
-----------------------------------------------------------------------------------
1/1 0.05 0.05 0.00% 0.05 0.05 __zplug::base [15]
52) 1 0.05 0.05 0.00% 0.05 0.05 0.00% hook.zsh
-----------------------------------------------------------------------------------
1/1 0.05 0.05 0.00% 0.05 0.05 __zplug::base [15]
53) 1 0.05 0.05 0.00% 0.05 0.05 0.00% message.zsh
-----------------------------------------------------------------------------------
1/1 0.05 0.05 0.00% 0.05 0.05 __zplug::base [15]
54) 1 0.05 0.05 0.00% 0.05 0.05 0.00% options.zsh
-----------------------------------------------------------------------------------
1/1 0.05 0.05 0.00% 0.05 0.05 __zplug::base [15]
55) 1 0.05 0.05 0.00% 0.05 0.05 0.00% sources.zsh
-----------------------------------------------------------------------------------
1/1 0.04 0.04 0.00% 0.04 0.04 __zplug::base [15]
56) 1 0.04 0.04 0.00% 0.04 0.04 0.00% gist.zsh
-----------------------------------------------------------------------------------
1/1 0.04 0.04 0.00% 0.04 0.04 __zplug::base [15]
57) 1 0.04 0.04 0.00% 0.04 0.04 0.00% format.zsh
-----------------------------------------------------------------------------------
1/1 0.04 0.04 0.00% 0.04 0.04 __zplug::base [15]
58) 1 0.04 0.04 0.00% 0.04 0.04 0.00% yaml.zsh
-----------------------------------------------------------------------------------
1/1 0.04 0.04 0.00% 0.04 0.04 __zplug::base [15]
60) 1 0.04 0.04 0.00% 0.04 0.04 0.00% omz.zsh
-----------------------------------------------------------------------------------
1/1 0.04 0.04 0.00% 0.01 0.01 __zplug::core::core::prepare [11]
79) 1 0.04 0.04 0.00% 0.01 0.01 0.00% __zplug::base::base::zsh_version
1/2 0.03 0.03 0.00% 0.03 0.03 __zplug::base::base::version_requirement [45]
-----------------------------------------------------------------------------------
1/1 0.04 0.04 0.00% 0.04 0.04 __zplug::base [15]
61) 1 0.04 0.04 0.00% 0.04 0.04 0.00% file.zsh
-----------------------------------------------------------------------------------
1/1 0.04 0.04 0.00% 0.04 0.04 __zplug::base [15]
62) 1 0.04 0.04 0.00% 0.04 0.04 0.00% migration.zsh
-----------------------------------------------------------------------------------
1/1 0.04 0.04 0.00% 0.04 0.04 __zplug::base [15]
63) 1 0.04 0.04 0.00% 0.04 0.04 0.00% process.zsh
-----------------------------------------------------------------------------------
1/1 0.04 0.04 0.00% 0.04 0.04 __zplug::base [15]
64) 1 0.04 0.04 0.00% 0.04 0.04 0.00% bitbucket.zsh
-----------------------------------------------------------------------------------
1/1 0.03 0.03 0.00% 0.03 0.03 __zplug::base [15]
65) 1 0.03 0.03 0.00% 0.03 0.03 0.00% gitlab.zsh
-----------------------------------------------------------------------------------
1/1 0.03 0.03 0.00% 0.03 0.03 __zplug::base [15]
67) 1 0.03 0.03 0.00% 0.03 0.03 0.00% local.zsh
-----------------------------------------------------------------------------------
1/1 0.03 0.03 0.00% 0.03 0.03 __load__ [22]
68) 1 0.03 0.03 0.00% 0.03 0.03 0.00% __zplug::core::load::prepare
-----------------------------------------------------------------------------------
1/1 0.03 0.03 0.00% 0.03 0.03 __zplug::base [15]
69) 1 0.03 0.03 0.00% 0.03 0.03 0.00% queue.zsh
-----------------------------------------------------------------------------------
1/1 0.02 0.02 0.00% 0.02 0.02 __zplug::base [15]
70) 1 0.02 0.02 0.00% 0.02 0.02 0.00% commands.zsh
-----------------------------------------------------------------------------------
1/1 0.02 0.02 0.00% 0.02 0.02 __zplug::base [15]
71) 1 0.02 0.02 0.00% 0.02 0.02 0.00% tags.zsh
-----------------------------------------------------------------------------------
1/1 0.02 0.02 0.00% 0.02 0.02 __zplug::base [15]
72) 1 0.02 0.02 0.00% 0.02 0.02 0.00% write.zsh
-----------------------------------------------------------------------------------
1/1 0.02 0.02 0.00% 0.02 0.02 __zplug::base [15]
74) 1 0.02 0.02 0.00% 0.02 0.02 0.00% ansi.zsh
-----------------------------------------------------------------------------------
1/1 0.01 0.01 0.00% 0.01 0.01 __zplug::base [15]
75) 1 0.01 0.01 0.00% 0.01 0.01 0.00% interface.zsh
-----------------------------------------------------------------------------------
76) 1 0.01 0.01 0.00% 0.01 0.01 0.00% __starship_get_time
Sheldon にしたらなんか明らかにコールが減った
num calls time self name
-----------------------------------------------------------------------------------
1) 1 28.84 28.84 82.86% 28.84 28.84 82.86% anyframe-init
2) 2 2.35 1.18 6.75% 2.35 1.18 6.75% add-zsh-hook
3) 2 2.08 1.04 5.97% 2.08 1.04 5.97% predict-on
4) 1 1.15 1.15 3.29% 1.15 1.15 3.29% async_init
5) 7 0.34 0.05 0.98% 0.31 0.04 0.90% zsh-defer
6) 1 1.19 1.19 3.41% 0.04 0.04 0.12% async
7) 1 0.03 0.03 0.08% 0.03 0.03 0.08% _zsh-defer-schedule
8) 1 0.01 0.01 0.02% 0.01 0.01 0.02% __starship_get_time
-----------------------------------------------------------------------------------
1) 1 28.84 28.84 82.86% 28.84 28.84 82.86% anyframe-init
-----------------------------------------------------------------------------------
2) 2 2.35 1.18 6.75% 2.35 1.18 6.75% add-zsh-hook
-----------------------------------------------------------------------------------
1/2 0.02 0.02 0.07% 0.02 0.02 predict-on [3]
3) 2 2.08 1.04 5.97% 2.08 1.04 5.97% predict-on
1/2 0.02 0.02 0.07% 0.02 0.02 predict-on [3]
-----------------------------------------------------------------------------------
6) 1 1.19 1.19 3.41% 0.04 0.04 0.12% async
1/1 1.15 1.15 3.29% 1.15 1.15 async_init [4]
-----------------------------------------------------------------------------------
1/1 1.15 1.15 3.29% 1.15 1.15 async [6]
4) 1 1.15 1.15 3.29% 1.15 1.15 3.29% async_init
-----------------------------------------------------------------------------------
5) 7 0.34 0.05 0.98% 0.31 0.04 0.90% zsh-defer
1/1 0.03 0.03 0.08% 0.03 0.03 _zsh-defer-schedule [7]
-----------------------------------------------------------------------------------
1/1 0.03 0.03 0.08% 0.03 0.03 zsh-defer [5]
7) 1 0.03 0.03 0.08% 0.03 0.03 0.08% _zsh-defer-schedule
-----------------------------------------------------------------------------------
8) 1 0.01 0.01 0.02% 0.01 0.01 0.02% __starship_get_time
余計なてぇっくがあっても早い
Loaded ~/.config/sheldon/plugins.toml
Checked ~/dotfiles/.config/zsh/async
Checked ~/dotfiles/.config/zsh/sync
Checked https://github.com/mollifier/anyframe
Checked https://github.com/zsh-users/zsh-history-substring-search
Checked https://github.com/zsh-users/zsh-syntax-highlighting
Checked https://github.com/mafredri/zsh-async
Checked https://github.com/romkatv/zsh-defer
Checked https://github.com/b4b4r07/enhancd
Checked https://github.com/junegunn/fzf
Checked https://github.com/yuki-yano/zeno.zsh
Checked https://github.com/zsh-users/zsh-completions
Locked ~/.local/share/sheldon/plugins.lock
num calls time self name
-----------------------------------------------------------------------------------
1) 1 58.52 58.52 67.18% 58.52 58.52 67.18% anyframe-init
2) 2 25.29 12.64 29.03% 25.03 12.51 28.73% vterm_cmd
3) 2 1.84 0.92 2.11% 1.84 0.92 2.11% predict-on
4) 1 0.91 0.91 1.04% 0.91 0.91 1.04% async_init
5) 10 0.43 0.04 0.50% 0.41 0.04 0.47% zsh-defer
6) 2 0.26 0.13 0.30% 0.26 0.13 0.30% vterm_printf
7) 2 25.33 12.66 29.07% 0.04 0.02 0.04% vterm_set_directory
8) 1 0.95 0.95 1.08% 0.03 0.03 0.04% async
9) 2 25.36 12.68 29.11% 0.03 0.02 0.04% add-zsh-hook
10) 1 0.02 0.02 0.02% 0.02 0.02 0.02% _zsh-defer-schedule
11) 1 0.02 0.02 0.02% 0.02 0.02 0.02% __starship_get_time
-----------------------------------------------------------------------------------
1) 1 58.52 58.52 67.18% 58.52 58.52 67.18% anyframe-init
-----------------------------------------------------------------------------------
9) 2 25.36 12.68 29.11% 0.03 0.02 0.04% add-zsh-hook
2/2 25.33 12.66 29.07% 0.04 0.02 vterm_set_directory [7]
-----------------------------------------------------------------------------------
2/2 25.33 12.66 29.07% 0.04 0.02 add-zsh-hook [9]
7) 2 25.33 12.66 29.07% 0.04 0.02 0.04% vterm_set_directory
2/2 25.29 12.64 29.03% 25.03 12.51 vterm_cmd [2]
-----------------------------------------------------------------------------------
2/2 25.29 12.64 29.03% 25.03 12.51 vterm_set_directory [7]
2) 2 25.29 12.64 29.03% 25.03 12.51 28.73% vterm_cmd
2/2 0.26 0.13 0.30% 0.26 0.13 vterm_printf [6]
-----------------------------------------------------------------------------------
1/2 0.03 0.03 0.03% 0.03 0.03 predict-on [3]
3) 2 1.84 0.92 2.11% 1.84 0.92 2.11% predict-on
1/2 0.03 0.03 0.03% 0.03 0.03 predict-on [3]
-----------------------------------------------------------------------------------
8) 1 0.95 0.95 1.08% 0.03 0.03 0.04% async
1/1 0.91 0.91 1.04% 0.91 0.91 async_init [4]
-----------------------------------------------------------------------------------
1/1 0.91 0.91 1.04% 0.91 0.91 async [8]
4) 1 0.91 0.91 1.04% 0.91 0.91 1.04% async_init
-----------------------------------------------------------------------------------
5) 10 0.43 0.04 0.50% 0.41 0.04 0.47% zsh-defer
1/1 0.02 0.02 0.02% 0.02 0.02 _zsh-defer-schedule [10]
-----------------------------------------------------------------------------------
2/2 0.26 0.13 0.30% 0.26 0.13 vterm_cmd [2]
6) 2 0.26 0.13 0.30% 0.26 0.13 0.30% vterm_printf
-----------------------------------------------------------------------------------
1/1 0.02 0.02 0.02% 0.02 0.02 zsh-defer [5]
10) 1 0.02 0.02 0.02% 0.02 0.02 0.02% _zsh-defer-schedule
-----------------------------------------------------------------------------------
11) 1 0.02 0.02 0.02% 0.02 0.02 0.02% __starship_get_time
793ba16cb5f03e0cf4508d0294e22a200aa41985 で解決
とりあえずログを貼る