kpreid / yield-progress

Progress reporting and cooperative task yielding in Rust
Apache License 2.0
2 stars 0 forks source link

Reduce overhead from async blocks. #33

Closed kpreid closed 4 days ago

kpreid commented 4 days ago

Using rustc -Zprint-type-sizes, I have examined the size of the generated future types for finish_and_cut() and Yielding::yield_only(), and removed unnecessary fields by reducing variables’ scope to not cross await points.