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

feat: Remove MaybeDone for tuple::join (without additional deps) #84

Conversation

poliorcetics
Copy link
Contributor

No description provided.

@poliorcetics
Copy link
Contributor Author

I'm interested in the perf comparison with #74 and the baseline :)

$(pub(super) $F: MaybeUninit<$F::Output>),*
}

pub(super) struct States {
Copy link
Collaborator

Choose a reason for hiding this comment

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

you could use PollStates here

I can run a comparison with the main, my branch, and ours after that :)

Copy link
Collaborator

Choose a reason for hiding this comment

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

but here's the current results

>> critcmp main patch84 -f tuple::join
group             patch84                                   main
-----             -------                                   ----
tuple::join 10    1.00    213.1±0.96ns        ? ?/sec    1.12    239.5±0.56ns        ? ?/sec

Copy link
Contributor Author

Choose a reason for hiding this comment

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

PollStates is not no_std since it uses Box, we probably want a static version for tuples and small arrays to avoid lots of small branches

Copy link
Owner

Choose a reason for hiding this comment

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

We have a no_std version of PollStates now: utils::PollArray.

@yoshuawuyts
Copy link
Owner

I've just approved #96 which builds on top of some of the concepts in this PR. I expect #74 will be updated soon to match that as well. Even if we may not choose to merge this PR, the work you've done has been incredibly insightful, and I wanted to thank you for your contributions to the project! 🙏

@poliorcetics
Copy link
Contributor Author

Thanks ! Don't worry about this PR if #74 is better I have no problem merging it instead of this :)

@poliorcetics poliorcetics deleted the join-for-tuple-without-maybe-done branch November 19, 2022 01:59
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.

None yet

3 participants