-
Notifications
You must be signed in to change notification settings - Fork 976
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(mdns): change mdns::Event
to hold Vec
#3621
Conversation
Unreleased patch version 0.43.1 bumped. Added entry for PR 3606: Deriving 'Clone' for 'mdns::Event'
I think I'd rather not have If we decide to do this, we can ship it with the next set of breaking changes. Needs a changelog entry. |
Glad to see that coming. Let's do it at once. |
New unreleased minor version 0.44.0.
Co-authored-by: Thomas Eizinger <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am in favor of the removal of the Iterator
, I am in favor of the removal of SmalVec
. Thanks @drHuangMHT!
mdns::Event
to hold SmallVec
mdns::Event
to hold Vec
This pull request has merge conflicts. Could you please resolve them @drHuangMHT? 🙏 |
Are we releasing 0.52 right away? Ping @thomaseizinger |
Not right away but there are some breaking changes on the horizon, most notable #2680 which will enable kademlia client mode. See #3651 if you want to track progress. Once we decide to merge that, this PR can also go in. I want to do a round of patch releases before that though. Happy to resolve the merge conflicts for you if you don't want to bother :) |
Thanks. But I'll resume my activity. My server refused to boot because of a faulty off-brand USB hub. I'll try to resolve the conflict myself because it's a chance for me to learn more about git CLI. It's a necessity, I can't get away with that. |
Oh no I did not actually resolve the conflict but left the marker here. I thought it was an overlay...... |
This comment was marked as resolved.
This comment was marked as resolved.
This pull request has merge conflicts. Could you please resolve them @drHuangMHT? 🙏 |
We've now opened the merge window for breaking changes so this is good to go in once the merge conflicts are resolved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Description
In previous PR #3606 we've made
mdns::Event
Clone
, but cloning single-use iterators doesn't sound right. Also you have to create an iterator from the actual data returned before putting it into events. So in this PR the iterators are replaced byVec
, as it's the type the data originally come from.Related #3612.
Notes & open questions
breaking change
Should we remove the use ofSmallVec
altogether? When should we roll out this breaking change?Should we remove
smallvec
entirely from the library? The performance impact is not noticeable before a large P2P network is formed.Change checklist