-
Notifications
You must be signed in to change notification settings - Fork 7
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
Performance improvement #8
Comments
Yeah I cringe a little every time I remember that Kakoune constantly runs a ton of shell commands at startup and on every keypress. I don't really want to remove P.S. @greenfork Is there an easy and fancy way to measure Kakoune's performance, or are you just using a debugger / shell commands? |
Nothing fancy really, I run time measurement of kakoune startup in a loop and edit config, as a result it shows changes in real time. I use elvish as a shell and for me the command is
and then I just edit config, save and see if it changes. About all the extra shell commands on init and keypress: I managed to reduce init time to under 100ms so it's generally fine. Mostly by removing |
kakboard/kakboard.kak
Lines 153 to 158 in 4cc87b2
This and the next loop add about 50ms total to startup time. If we define these commands manually using
map
:str-list kakboard_paste_keys p P R <a-p> <a-P> <a-R>
then it goes down to under 5ms.I'm not asking for anything in particular, but this might be useful to someone.
My config for reference:
The text was updated successfully, but these errors were encountered: