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 communication Message type #596

Merged

Conversation

frankmcsherry
Copy link
Member

This PR chases down some simplifications due to the removal of abomonation, looking forward to flexibility enabled by containers.

Specifically, the Message<T> type has wrapped several ways to present a T, including owned and borrowed forms, as well as numerous accessors. All of the borrowed forms have been dead code since the abomonation removal, and the attendant complexity unwarranted. This PR removes it.

Going forward, distinctions between owned and borrowed seem best housed in containers, which can themselves resemble MessageContents<T> which was the enum that could be owned or borrowed. The Message<T> type remains, but seemingly only to support serialization methods, but this behavior could be move into a trait that containers are expected to implement if they are to be used for exchange edges.

Copy link
Member

@antiguru antiguru left a comment

Choose a reason for hiding this comment

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

Looks good. Didn't read in detail as I'm on the phone.

@frankmcsherry frankmcsherry merged commit 5323fd6 into TimelyDataflow:master Nov 10, 2024
7 checks passed
@frankmcsherry frankmcsherry deleted the communication_simplify branch November 10, 2024 15:58
@github-actions github-actions bot mentioned this pull request Nov 10, 2024
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