zifeo / whiz

Modern DAG/tasks runner for multi-platform monorepos with live reloading, env management, pipes, and more in a tabbed view.
https://metatype.dev/docs/reference/ecosystem?utm_source=github&utm_medium=about&utm_campaign=whiz
Mozilla Public License 2.0
19 stars 14 forks source link

Performance problems when processing stdout #121

Open Yohe-Am opened 5 months ago

Yohe-Am commented 5 months ago

When a task dumps tons of lines to stdout, whiz has a hard time keeping up making the interface unresponsive. It's not able to accept hotkeys or switch panes when this is going on. This only happens if the panel is the currently being displayed (instanteneous if the panel is in the bg) which leads me to suspect serial scrolling might be the problem here. As thus, I've learned to switch to another panel before deploying to typegates (which emits a lot of SQL output) as, in some instances, whiz can pin a CPU for minutes before I'm forced to kill it.

Edit: that horrible case mentioned at the end there turned out to be from a debug build of whiz. Performance troubles are noticeable still on release builds though.

Natoandro commented 5 months ago

It is even worse when running via ssh...

A solution is to batch screen updates at some time interval instead of updating for each line.