-
Notifications
You must be signed in to change notification settings - Fork 89
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
[ENHANCEMENT]: Consider removing the use of argument_type
and result_type
from hasher
in cuco default_filter_policy
#653
Comments
hasher::argument_type
and hasher::result_type
in cuCo default and arrow filter policiesargument_type
and result_type
from hasher
in cuo default and arrow filter policies
I thought about mentioning this during the code review but didn’t want to come across as nitpicking. Instead of
we could make the hasher a template type: template<class Key, template <typename> class Hash>
class arrow_filter_policy {
...
}; To use it, users can simply pass the hasher type without repeating the auto p = arrow_filter_policy<Key, cuco::xxhash_32>{...}; |
No worries about that. I am always for pursuing excellence and attention to the detail is how we all learn. 😄 I think this is a great idea. Let's do this. But we still would be using the member types ( |
Half-half. The |
Agreed. Let's make the suggested change to |
argument_type
and result_type
from hasher
in cuo default and arrow filter policiesargument_type
and result_type
from hasher
in cuco default_filter_policy
#654 removes these member types for the |
Is your feature request related to a problem? Please describe.
The member type std::hash::argument_type is deprecated in C++17 and removed in C++20, so we should consider syncing with STL and remove them from our hashers as well as their use in bloom filter policies.
Ref: https://en.cppreference.com/w/cpp/utility/hash
Originally posted by @bdice in rapidsai/cudf#17289 (comment)
Describe the solution you'd like
Consider refactoring to not use hasher::argument_type and hasher::result_type across cuCollections.
Describe alternatives you've considered
Keep using the deprecated hasher type aliases until C++20
Additional context
No response
The text was updated successfully, but these errors were encountered: