-
Notifications
You must be signed in to change notification settings - Fork 37
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
LittleDict should overload hasfastin
to be false
#33
Comments
Technically true, but isn’t the point of LittleDicts is that they’re used when you only have a few values? In this case, the size is bounded, and the timing can be considered linear. (Of course, there isn’t a size check in the code, right?) Technical definitions aside, what is the point of |
See discussion in JuliaLang/julia#34672 It's exactly the same here except we know more about the type of our key container -- always tuple or vevtor |
This function says if the checking of
haskey
is expected logorithmic or better.but for LittleDict it is not, it is linear.
Default for
AbstractDict
is true.https://github.com/JuliaLang/julia/blob/aa36eefa17e68dd3781b668bc40328583b161924/base/abstractset.jl#L284-L295
The text was updated successfully, but these errors were encountered: