Simple async wrapper doubles the size of a future #72454
Labels
A-async-await
Area: Async & Await
C-bug
Category: This is a bug.
I-heavy
Issue: Problems and improvements with respect to binary size of generated code.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I'm using the following wrapper function:
Using
std::mem::size_of_val
, the size of any future returned by this function is a bit more than twice the size of the future passed to it. This is a pretty severe penalty for a simple helper function.The text was updated successfully, but these errors were encountered: