Closed
Description
This 'regression' appears a while ago in criner
, and apparently went unnoticed when switching from tokio::time::Delay
to async_io::Timer
.
The picture above shows a criner
process doing nothing, consuming 10 to 15% of CPU for displaying 4 progress bars which update once per second. The expensive part of this used to be the drawing itself, but now it appears to be dominated by the condvar in parking
.
In smol
0.1.5 using smol::Timer
, this looked like that:
All that shows up is the drawing of the TUI.
Having had a look myself I am absolutely puzzled as to why that is - the code looks very similar.
Any hint at how to solve this would be greatly appreciated.
Thank you
Meta
- 'utils.rs' on a criner branch that works as expected, without performance issues
- It's noteworthy that
criner
didn't change in the relevant portions of the code responsible for the timer invocations see utils.rs.
- It's noteworthy that

Metadata
Metadata
Assignees
Labels
No labels