Post
Yep, we notice it acutely! bsky.app/profile/jame...
None of these are *deal breakers*: and should not be a reason to NOT use async/await, IMO. But on embedded we feel the pain of increased code size + ram usage much more acutely, and sometimes it requires being careful to avoid pathological cases. That doesn't feel good.
Yeah, most of these things are *avoidable* in practice: making sure you don't have large owned items in futures, try to keep nested future depth low, etc. It's just annoying you HAVE to work around papercuts.
0 reposts4 likes
github.com/rust-lang/ru... is an easy go-to, but in general yeah there's a lot of very-not-optimized codegen going on wrt generators/futures.
and github.com/rust-lang/ru... is a neat fix for at least some of that.