-
Notifications
You must be signed in to change notification settings - Fork 114
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
Cheap equality check for Vector? #117
Comments
This is already happening in the |
Added a |
Yeah, |
@maxbrunsfeld Is the current
Is a |
As noted above, inlined vectors live on the stack and never share data, so they are never going to have pointer equality when cloned. If your |
I don't know There's an immutable But this does not work with the current implementation of |
The doc for
It reads unambiguously identical to what |
heh was just pointed to this issue; did not know that druid had motivated the original I think the behaviour of |
The goal with In regards to inline vectors giving a false negative with |
|
Is it possible to test if two
Vector
instances share the same allocated contents? I'd like to useim-rs
in conjunction with thedruid
UI library, and implement Druid'sData
trait for structs containing Vectors.If it's not currently possible, would you be open to the addition of some method like
.same
forVector
(and possibly other collection types)?The text was updated successfully, but these errors were encountered: