Questioning the design of the "Future" trait, and the cost implied by it

See also: Pre-RFC: CPS transform for generators

At the time, the team working on async/await didn't consider this particular performance pitfall to be a problem. That is, the potential to do inlining (including before the generator transform), combined with common tasks having relatively shallow stacks, means they did not expect this to cause problems.

5 Likes