septum
septum copied to clipboard
[BUG] Help output is printed slowly
Describe the bug
The output printed by help
is printed quite slowly.
To Reproduce Steps to reproduce the behavior:
- Go to the prompt
- Type 'help' and press the enter key
- It takes like 1 or 2 seconds to print everything
Expected behavior (if applicable) See the help text getting printed more or less instantly
Desktop (please complete the following information):
- OS: Arch Linux
- Version: Built from Source
Additional context Minor issue.
Might be a regression of #35, I think it might be buffering due to not using a back buffer and the current Trendy Terminal newline settings instead of scrolling. Last time IIRC it was related to a long delay due to VT100.Report_Cursor_Position
procedure.
Using https://github.com/onox/goblin-terminal (it uses VTE like gnome-terminal). But output is printed instant in tmux! :open_mouth:
Yup, if you use strace
to check the length of the system calls you might see an issue. htop
has an easy way of doing this.
For each line printed, I see:
- read()
- read() returning E_AGAIN
- write()
- 4x poll()
- write()
- clock_nanosleep()
- 2x poll()
- write()
With weston-terminal the output is printed instantly and I see:
- epoll_wait()
- read()
- write()
Slow in gnome-terminal as well (not a surprise since it uses VTE)
Thanks! I'll look when I can, but it might be a couple of days before I get to this.