Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify await_suspend #5

Open
modocache opened this issue Nov 10, 2018 · 0 comments
Open

Simplify await_suspend #5

modocache opened this issue Nov 10, 2018 · 0 comments
Labels
ts-simplification As described in "Small Simplifications to the Coroutines TS for C++20"

Comments

@modocache
Copy link
Owner

Have only coroutine_handle-returning await_suspend. bool- and void-returning variants of await_suspend can be expressed in terms of the former with use of noop_coroutine().

In addition to simply making the change, this also requires a performance investigation, both in terms of the time it takes Clang to compile this new await_suspend, and in terms of the memory footprint of programs that use many awaits.

@modocache modocache added the ts-simplification As described in "Small Simplifications to the Coroutines TS for C++20" label Nov 10, 2018
@modocache modocache self-assigned this Nov 10, 2018
@modocache modocache removed their assignment Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ts-simplification As described in "Small Simplifications to the Coroutines TS for C++20"
Projects
None yet
Development

No branches or pull requests

1 participant