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

Optimisation: reduce WhenAll operational state #93

Merged
merged 1 commit into from
Dec 30, 2024

Conversation

skoppe
Copy link
Collaborator

@skoppe skoppe commented Dec 29, 2024

Instead of putting the senderCount and the receiver in each result receiver, we put it once in the state. This saves a fair amount of bytes on the WhenAllReceiver and saves on stack allocations.

Test Plan: `dub test``

Instead of putting the senderCount and the receiver in _each_ result
receiver, we put it once in the state. This saves a fair amount of bytes
on the `WhenAllReceiver` and saves on stack allocations.

Test Plan: `dub test``
@skoppe skoppe merged commit e5788d1 into master Dec 30, 2024
8 checks passed
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.

1 participant