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

High CPU usage when command produces a lot of output #130

Open
ids1024 opened this issue Feb 8, 2024 · 2 comments
Open

High CPU usage when command produces a lot of output #130

ids1024 opened this issue Feb 8, 2024 · 2 comments
Milestone

Comments

@ids1024
Copy link
Member

ids1024 commented Feb 8, 2024

cat /dev/urandom is a simple test for this.

With that I see things like 228 CPU usage from cosmic-term in htop. So somehow this results in a substantial CPU load on multiple cores.

@MoSal
Copy link
Contributor

MoSal commented Feb 27, 2024

With that I see things like 228 CPU usage from cosmic-term in htop.

Why not ;)

Anyway, it's better, IMHO, to test with something like rand-ascii (which I just quickly wrote), than to dump whatever unicode/non-unicode mess from /dev/urandom on the terminal, especially when comparing with other terminals that don't utilize a sophisticated text stack.

I don't have the time to test new builds, but I tested an old build (cb26aed), and the performance seems to have already been fine!

And I'm leaving this comment here because I've done a few performance optimizations on Monospace fallback code in cosmic-text.

I've tested them with the same old build, but with a lot of local BiDi-related changes on top that have the potential to slow things down (including paragraph support, physical-to-logical column position maps, among other things), and the performance seems to be still fine. So, that's good news.

@ChocolateLoverRaj
Copy link
Contributor

I used rand-ascii to compare Konsole with COSMIC Term just cuz I was curious. KDE System Monitor showed ~15% CPU usage for Konsole and ~25% CPU usage for cosmic-term.

@WatchMkr WatchMkr added this to the alpha 2 milestone May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Alpha 2
Development

No branches or pull requests

4 participants