-
-
Notifications
You must be signed in to change notification settings - Fork 639
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
Investigate BitSet
optimizations
#1486
Comments
I think my comment on CharSeq optimization also applies here. We should stay with the current impl in favor of a better memory footprint. From wikipedia: "A bit array is effective at exploiting bit-level parallelism in hardware to perform operations quickly." That said using a Vector as backend we loose important characteristics of our low-level implementation. Let's stay with our current impl please. |
Does the primitive-enabled |
BitSet will probably not part of Vavr 1. We want to focus on the most frequently used collections. Maybe we will release some kind of add-on collections package later. |
Extends #1334
Similarly to how #1480 reimplements
CharSeq
based onVector
to enable many constant time operations, we should consider rebasingBitSet
onVector
also, to enable constant time modifications, instead of the current linear ones.However, we should also consider the non-boxed version (see #1484) of Vector, as we're storing primitives here exclusively.
@ruslansennov, @danieldietrich?
The text was updated successfully, but these errors were encountered: