-
Notifications
You must be signed in to change notification settings - Fork 370
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
remaining dependencies on CategoricalArrays #2506
Comments
Yes since it's not breaking it doesn't need to be in 0.22. For the first ones, and ugly hack checking the name of the type could work. For the latter we can just use |
I have looked into it and my conclusion is: For
it is problematic to make it generic because for fast aggregates I was not fully sure how to do it cleanly (we need to assure pool sharing, but calling |
AFAICT we don't really need to know where For aggregates it's harder. Need to think about it. |
The point is that what you propose does not work:
|
My comment JuliaData/DataAPI.jl#26 (comment) is related. If we want to be able to have a fully generic interop without knowing if something is In particular I was wondering what is the benefit of encoding |
Ah yes that annoying rp = DataAPI.refpool(x)
hashes = Vector{UInt}(undef, length(rp))
for (i, v) in zip(eachindex(hashes), rp)
hashes[i] = hash(v)
end I think technically we don't strictly need
Originally that was the simplest solution. I guess we could store it as |
Ah - right. I will open a PR for this to try learning something more about these things 😄. It will additionally speed up |
Now I see it: the problem with |
Ah - right. Let us leave it as is then. |
Apart from open PRs we have the following remaining dependencies on CategoricalArrays.jl:
This should be worked on after #2481 is merged.
@nalimilan - it can be done post 0.22 I think but before 1.0 (as this seems only optimization related). But could you please check (you know this code better), as maybe removing the dependency will have consequences like changing type or order of resulting computations (as we had in several cases recently). In general - it would be great if you could make an appropriate PR as you know this code much better than me. Thank you!
The text was updated successfully, but these errors were encountered: