-
Notifications
You must be signed in to change notification settings - Fork 165
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
Optimize MixedNode<Equal> unindexed #6506
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.
What's up with CI? Otherwise lgtm
@@ -218,7 +218,7 @@ size_t ArrayMixed::find_first(Mixed value, size_t begin, size_t end) const noexc | |||
if (end == realm::npos) | |||
end = size(); | |||
for (size_t i = begin; i < end; i++) { | |||
if (this->get_type(i) == type && get(i) == value) { | |||
if (Mixed::data_types_are_comparable(this->get_type(i), type) && get(i) == value) { |
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.
Since it changes which values get compared now - it also deserves changelog entry, no?
Also, it's fine to change it, right?
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.
ArrayMixed::find_first was unused before this. When I added it in I found some failing tests, so I think there is no change log needed as there is no net new behaviour.
I opened #6508 to track the CI failure. |
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.
Awesome
☑️ ToDos