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

future: optimize .then() for unique rvalues. #32

Open
griwes opened this issue Sep 26, 2016 · 0 comments
Open

future: optimize .then() for unique rvalues. #32

griwes opened this issue Sep 26, 2016 · 0 comments

Comments

@griwes
Copy link
Member

griwes commented Sep 26, 2016

.then() chains are currently suboptimal. Consider:

auto fut = make_ready_future()
    .then(some_callback)
    .then(other_callback)
    .then(yet_another_callback);

Only the result of the final .then() needs to be truly stateful - the temporary ones used to construct this continuation chain are never going to be used except to feed the singular continuation. There's space for optimization here.

@griwes griwes added this to the Release v0.1 alpha milestone Sep 26, 2016
@griwes griwes self-assigned this Sep 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant