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

When running certain cli commands, the terminal component is really slow to load. #83

Open
atljoseph opened this issue May 20, 2024 · 6 comments

Comments

@atljoseph
Copy link

atljoseph commented May 20, 2024

Running plandex (github repo) inside the terminal, and it is VERY slow to load. This lib uses some TUI libraries.

Running nvtop is blazing fast.

Is there a way to make sure this is more efficient?

It is slow whether i run it for the first time opening terminal, or for the 10th time running a command on an existing terminal.

@andydotxyz
Copy link
Member

Performance is based on the number of characters that change on each redraw. Text caching is improving in Fyne which will improve this greatly.

@atljoseph
Copy link
Author

atljoseph commented May 22, 2024

Also doesn’t seem to stream results back from whatever background process is handling the session with the os. Seems to sandbag until the end on some things. That plandex cli also uses a tui lib which might affect it

@andydotxyz
Copy link
Member

Also doesn’t seem to stream results back from whatever background process is handling the session with the os. Seems to sandbag until the end on some things. That plandex cli also uses a tui lib which might affect it

I don't know what this means. When the shell gets bytes they will write to the screen of the terminal.
Perhaps you can describe the steps to replicate an issue where changes are not updating on screen...?

@atljoseph
Copy link
Author

atljoseph commented May 23, 2024 via email

@atljoseph
Copy link
Author

atljoseph commented May 23, 2024 via email

@andydotxyz
Copy link
Member

It sounds like this may relate to scrolling. The movement of entire content up one row to add another below could be the source of slowness.
We should be able to include this as an appropriate optimisation - let's see what we can do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants