-
-
Notifications
You must be signed in to change notification settings - Fork 96
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
zv: store entries of Dict as BTreeSet to keep it ordered #500
Conversation
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.
In general looking good. Apart from the inline comments in the commits:
- It looks like @sivizius added 2 commits after to improve your previous commits. They should be squashed back into your commits so we've a nice linear history.
- Great work on keeping the commits atomic and adding rational to each commit. 👍 Could I also convince you to add emojis as per the recommendation in our contribution guide? :) It just keeps the history very consistent.
this test is failing
8d65414
to
41882d0
Compare
formating issues should be fixed now |
Here is some context: mguentner@db9474a. We tried to conform to C-COMMON-TRAITS, so even though
The custom comparison for There is an open PR mguentner#4 by myself regarding comparison of floating point values using |
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.
Great work!
Thanks. I will have a look at it soon. Somehow I didn't get an email notification for that. 🤷
That link is a 404 for btw. Is it restricted? |
@mguentner please fix the formatting issue (make sure to squash int the relevant commit) and we should be ready to merge. Thanks so much for this. |
It is an PR in the repository with the branch of this PR. Maybe that is why?
Copy-Paste-Fail, I have fixed it. |
You mean that branch is based on the branch of this PR? I don't think that matters at all. I think there may be an issue with my email alias' forwarding.
Thanks. Happens to us all. :) |
@mguentner Please don't give up this close to the finish line. :) |
On it. Won't stall it. |
41882d0
to
be1a6a4
Compare
@zeenix Should be good to go. Let's see the workflow result 🎰 |
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.
LGTM otherwise.
BTreeSet / BTreeMap requires the `Ord` trait to be implemented Co-authored by: Sebastian Walz <[email protected]>
this makes the order of `Dict` deterministic and allows to compare the value two dicts while the order in which they have been constructed does not matter. Issue: dbus2#484
since Dict.entries is now represented by a BTreeSet instead of a Vec, the serialized order changes and thus the padding introduced by the serializer does aswell
allows comparisons of different enum types with same values Co-authored by: Sebastian Walz <[email protected]>
be1a6a4
to
2211eec
Compare
adds a test to assert the desired behavior described in #484.
Credits to @sivizius for reviewing and contributing.
closes #484