[FEA] Perform slice in top_k if cudf_polars Column `is_sorted`
Open
cudf-polars
feature request
- Dominant language
- C++
- Stars
- 9.8k
- Forks
- 1.1k
- Avg merge
- 3d 6m
- Merged PRs (30d)
- 278
Description
(Identified by Claude)
If the input `Column.is_sorted` and the `Column.order == reverse`, it may be more performant just to use `plc.copying.slice` of the first or last k rows
https://github.com/rapidsai/cudf/blob/01c7adae10d12da7a175fb616300f8190522b6e0/python/cudf_polars/cudf_polars/dsl/expressions/unary.py#L506-L508
Contributor guide
Assessment
This issue has not been assessed yet.