Closed kpreid closed 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.
rustc -Zprint-type-sizes
finish_and_cut()
Yielding::yield_only()
Using
rustc -Zprint-type-sizes
, I have examined the size of the generated future types forfinish_and_cut()
andYielding::yield_only()
, and removed unnecessary fields by reducing variables’ scope to not cross await points.