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

Reworking reduction #551

Merged
merged 5 commits into from
Dec 3, 2024
Merged

Reworking reduction #551

merged 5 commits into from
Dec 3, 2024

Conversation

sean-parent
Copy link
Member

Reworked reduction to connect cancelation to the secondary task (it was detached in the prior version). As a side benefit, I eliminated double type erasure on all packaged tasks, reducing the invocation overhead and eliminating a heap allocation for large tasks.

To-do before moving from draft PR - write unit tests to check cancelation points work correctly.

Reworked reduction to connect cancelation to the secondary task (it was detached in the prior version).
As a side benefit, I eliminated double type erasure on all packaged tasks, reducing the invocation overhead and eliminating a heap allocation for large tasks.

To-do before moving from draft PR - write unit tests to check cancelation points work correctly.
@@ -180,44 +180,44 @@ namespace detail {

/**************************************************************************************************/

template <typename>
template <class>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a specific reason that you changed the specifier to class?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was always the convention on stlab to match the standard usage. I'm not sure when it changed.

@sean-parent sean-parent merged commit 2821828 into main Dec 3, 2024
6 checks passed
@sean-parent sean-parent deleted the sean-parent/future-reduction branch December 3, 2024 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants