NVIDIA / NVIDIA/cuCollections

[ENHANCEMENT]: Consider removing the use of `argument_type` and `result_type` from `hasher` in cuco `default_filter_policy`

未关闭
#653 5 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

P1: Should have topic: bloom_filter type: improvement
主要语言
Cuda
星标
667
派生
120
平均合并
7 天 5 小时
30 天内合并 PR
4

描述

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 https://github.com/rapidsai/cudf/pull/17289#discussion_r1876965059

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

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

在 cuCollections 中搜索 hasher::argument_type 和 hasher::result_type,然后检查它们在布隆过滤器策略中的使用情况。在进行任何更改之前,梳理受影响的 hasher 和策略。完成的标准是:已在 cuCollections 中移除废弃的别名及其使用位置,同时相关构建和测试仍然成功。

由索引模型根据 Issue 内容生成。

评估

技术栈
cpp
领域
backend
Issue 类型
重构
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。