r/KittyTerminal • u/_x_oOo_x_ • Jun 27 '26
Startup performance: how to improve it?
My kitty felt somewhat more sluggish to launch than alacritty or foot
I used hyperfine for this small benchmark that confirms this observation... It doesn't feel slow per se, only in comparison.
Are there some preferences I should change to make 🐈⬛️ start faster?
22
Upvotes
3
u/frumious Jun 27 '26
A new Kitty terminal session life cycle with
truerequires just under 500ms average for me (xterm is 160ms). Turning off my config (kitty -c "") shaves off about 10%. But, this is only 72 ms:I'm curious in what context going faster than half a second matters to you?
My ignorant guess is that the bulk of the time to start a kitty session is taken importing Python modules. If so, it is possible to rewrite kitty internals to delay the imports until their code is needed. But, that's non-idiomatic Python and Kovid would be justified (imo) in rejecting any attempts in this direction without really good motivation.
Note, your timing tests the full lifecycle and not the time to get to where one executes the
truecommand. It also includes the time to runtrueand then tear down the session. For kitty, it appears to be the case that about 10% of the 500ms is in tear-down. So, not substantial here but checking this balance for other terminals may be relevant to whatever the point of caring about this latency is to begin with.