kovidgoyal / kitty

Cross-platform, fast, feature-rich, GPU based terminal
https://sw.kovidgoyal.net/kitty/
GNU General Public License v3.0
24.6k stars 986 forks source link

kitty startup slow on my fedora laptop #7666

Closed HujinoKun closed 3 months ago

HujinoKun commented 3 months ago

Describe the bug

When I activate the following options :

map kitty_mod+up neighboring_window up
map kitty_mod+left neighboring_window left
map kitty_mod+right neighboring_window right
map kitty_mod+down neighboring_window down

Kitty is very slow on startup (~5seconds).

When I launch with single-instance changes nothing.

Environment details

OS : Fedora 40

Kitty : 0.35.2

My Kitty configuration file :

# vim:fileencoding=utf-8:foldmethod=marker

editor /usr/bin/vim

font_family      FiraCode Nerd Font
bold_font        auto
italic_font      auto
bold_italic_font auto

font_size 18.0
open_url_with firefox
copy_on_select yes
background_opacity 0.95
window_margin_width 5
single_window_margin_width 0
window_border_width 1pt
disable_ligatures never
background_tint 0.8
background_tint_gaps -10
enabled_layouts Tall, *
tab_bar_style powerline
tab_powerline_style slanted
update_check_interval 24
show_hyperlink_targets yes
map kitty_mod+enter new_window_with_cwd
allow_remote_control yes
tab_title_template "{index}: {'/'.join(title.split('/')[-2:])}"
#active_tab_title_template
map kitty_mod+up neighboring_window up
map kitty_mod+left neighboring_window left
map kitty_mod+right neighboring_window right
map kitty_mod+down neighboring_window down
# BEGIN_KITTY_THEME
# Elemental
include current-theme.conf
# END_KITTY_THEME
kovidgoyal commented 3 months ago

I dont see how those options could possibly affect startup time, and they do not for me. And single instance reduces the startup time of all instances after the first one. Since you didnt provide the information asked for in the issue template I cant guess what else could be going on, but I can tell you that running from master with those lines in my kitty config file, startup time is 0.25 seconds without single instance and 0.003 seconds with single instance.

time kitty -1

real    0.003
user    0.002
sys 0.000
maxmem  10 MB
faults  0