-
Notifications
You must be signed in to change notification settings - Fork 1
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
Improve Startup Performance #1
Comments
That's surprising to me, I can think of only a few possibilities:
All
|
Ah sorry to bother you, I believe you are right. I should have considered that, it looks like the branch spec adds ~300ms when testing in hyperfine and the profile script shows a significant decrease after removing it. I'll close this and open an issue in the plug.kak repo. ----
shell execution took 8898 us (spawn: 66, wait: 8766)
hook 'GlobalSetOption(plug_plugins=... caksoylar/kakoune-focus )' took 0 us
command set-option took 8 us
hook 'GlobalSetOption(focus_separator={Whitespace}────────────────────────────────────────────────────────────────────────────────)' took 0 us
command declare-option took 12 us
hook 'GlobalSetOption(focus_context_lines=1)' took 0 us
command declare-option took 5 us
command declare-option took 1 us
command declare-option took 1 us
command declare-option took 1 us
command define-command took 3 us
command define-command took 3 us
command define-command took 1 us
command define-command took 1 us
command define-command took 2 us
command alias took 0 us
command alias took 0 us
sourcing '/home/sugimoto/.config/kak/plugins/plug.kak/..//kakoune-focus/focus.kak' took 102 us
command source took 111 us
command map took 3 us
command try took 7 us
sourcing '/home/sugimoto/.config/kak/plugins/plug.kak/..//.build/kakoune-focus/config' took 30 us
command source took 35 us
hook 'GlobalSetOption(plug_loaded_plugins=andreyorst/plug.kak JacobTravers/kampliment gustavo-hms/luar nojhan/kalolo evanrelf/number-toggle.kak JacobTravers/kak-rainbower kak-lsp/kak-lsp alexherbo2/window.kak alexherbo2/indent.kak andreyorst/smarttab.kak alexherbo2/alacritty.kak alexherbo2/auto-pairs.kak lePerdu/kakboard eburghar/kakpipe https://gitlab.com/Screwtapello/kakoune-repl-buffer JacobTravers/kakoune-sudo-write delapouite/kakoune-auto-percent eburghar/kakship natasky/kakoune-multi-file useredsa/dynamic-matching.kak gustavo-hms/peneira delapouite/kakoune-buffers delapouite/kakoune-cd danr/kakoune-easymotion caksoylar/kakoune-focus )' took 0 us
command set-option took 6 us
command evaluate-commands took 180 us
command try took 9102 us
command plug took 9107 us
shell:
# $kak_client
# $kak_config
# $kak_opt_plug_always_ensure
# $kak_opt_plug_git_domain
# $kak_opt_plug_install_dir
# $kak_opt_plug_loaded_plugins
# $kak_opt_plug_max_active_downloads
# $kak_opt_plug_plugin
# $kak_opt_plug_plugins
# $kak_opt_plug_profile
# $kak_opt_plug_block_ui
# $kak_opt_plug_report_conf_errors
# $kak_opt_plug_conf_errors
# $kak_session
. "${kak_opt_plug_sh_source}"
plug "$@"
---- |
No worries! I tested and get about a 5ms improvement by commenting out my |
Kakoune was taking ~1.0s to open a blank buffer so I used this script to profile my config and see what was causing the delay.
and I found this:
this is considerably longer than any other plugin I have installed, for example here is kak-lsp
here is how I have kakoune-focus in my config
Commenting this section gives me ~700ms reduction in startup time when tested with this script.
hyperfine -i "kak -e \"exec 'gj:q<ret>'\""
The text was updated successfully, but these errors were encountered: