Skip to content
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

[BUG] Help output is printed slowly #39

Open
onox opened this issue Jan 2, 2022 · 6 comments
Open

[BUG] Help output is printed slowly #39

onox opened this issue Jan 2, 2022 · 6 comments
Labels
bug Something isn't working
Milestone

Comments

@onox
Copy link

onox commented Jan 2, 2022

Describe the bug
The output printed by help is printed quite slowly.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the prompt
  2. Type 'help' and press the enter key
  3. 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.

@onox onox added the bug Something isn't working label Jan 2, 2022
@pyjarrett pyjarrett added this to the Beta milestone Jan 2, 2022
@pyjarrett pyjarrett added the priority-0-immediate To be fixed before more feature work label Jan 2, 2022
@pyjarrett
Copy link
Owner

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.

@onox
Copy link
Author

onox commented Jan 2, 2022

Using https://github.com/onox/goblin-terminal (it uses VTE like gnome-terminal). But output is printed instant in tmux! 😮

@pyjarrett
Copy link
Owner

pyjarrett commented Jan 2, 2022

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.

@onox
Copy link
Author

onox commented Jan 2, 2022

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()

@onox
Copy link
Author

onox commented Jan 2, 2022

Slow in gnome-terminal as well (not a surprise since it uses VTE)

@pyjarrett
Copy link
Owner

Thanks! I'll look when I can, but it might be a couple of days before I get to this.

@pyjarrett pyjarrett removed the priority-0-immediate To be fixed before more feature work label Jan 17, 2024
@onox onox closed this as not planned Won't fix, can't repro, duplicate, stale Jul 22, 2024
@pyjarrett pyjarrett reopened this Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants