tym: Slow startup
Hi, I noticed, that tym startups are slow (and maybe getting gradually slower?) Here is comparison with urxvt:
# time urxvt -e "bash -c exit" 2019-08-18T11:20:42 CEST
0.03user 0.01system 0:00.04elapsed 95%CPU (0avgtext+0avgdata 13424maxresident)k
0inputs+0outputs (0major+1055minor)pagefaults 0swaps
# time tym -e "bash -c exit" 2019-08-18T11:20:47 CEST
0.18user 0.05system 0:00.25elapsed 91%CPU (0avgtext+0avgdata 40592maxresident)k
1824inputs+0outputs (5major+4956minor)pagefaults 0swaps
200 ms might be ok for some users, but I spawn terminals in tiling wm (i3) pretty often. Slow startup causes, that tym misses several keystrokes when start typing immediately after launching tym (with kb shortcut).
Using Arch Linux, tym version 2.2.1.
EDIT:
under heavy CPU load:
# time tym -e "bash -c exit" 2019-08-18T12:04:34 CEST
0.36user 0.05system 0:00.50elapsed 84%CPU (0avgtext+0avgdata 40948maxresident)k
0inputs+0outputs (0major+4970minor)pagefaults 0swaps
# time urxvt -e "bash -c exit" 506ms 2019-08-18T12:04:37 CEST
0.04user 0.01system 0:00.06elapsed 88%CPU (0avgtext+0avgdata 13448maxresident)k
0inputs+0outputs (0major+1009minor)pagefaults 0swaps
About this issue
- Original URL
- State: open
- Created 5 years ago
- Comments: 16 (9 by maintainers)
@Stardust-kyun @erikLundstedt OK. I understand the demands. I will work on adding the server mode like such as
tym --daemonand a systemd service to spawn it. Though I’m a bit busy at my job these days and don’t know when it will be completed, please wait for it.I have pushed #90 and started implementation. This feature was fortunately easy to be realized. I’m planning to add user-level systemd unit. Requests will be accepted on the PR thread.
This feature will be contained in the next release.