Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Refactor ST_Distance header only API#1143

Merged
rapids-bot[bot] merged 9 commits intorapidsai:branch-23.06from
isVoid:improvement/refactor_st_distance_header
May 31, 2023
Merged

Refactor ST_Distance header only API#1143
rapids-bot[bot] merged 9 commits intorapidsai:branch-23.06from
isVoid:improvement/refactor_st_distance_header

Conversation

@isVoid
Copy link
Copy Markdown
Contributor

@isVoid isVoid commented May 19, 2023

Description

This PR refactors ST_Distance API to reduce the number of kernels to maintain. Currently, each st_distance API maintains its own distance kernel. This refactor let linestring_polygon distance and polygon_polygon distance share the underlying linestring-linestring distance. Also, point-polygon distance now share the same kernel with point-linestring distance kernel.

As we are moving to optimization, reducing the total number of kernel to maintain can help scaling the optimization benefit across multiple APIs.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@github-actions github-actions bot added the libcuspatial Relates to the cuSpatial C++ library label May 19, 2023
@isVoid isVoid marked this pull request as ready for review May 25, 2023 20:12
@isVoid isVoid requested a review from a team as a code owner May 25, 2023 20:12
@isVoid isVoid requested review from harrism and trxcllnt May 25, 2023 20:12
@isVoid isVoid self-assigned this May 25, 2023
@isVoid isVoid added 3 - Ready for Review Ready for review by team improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels May 25, 2023
Copy link
Copy Markdown
Member

@harrism harrism left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Elegant simplification. Can you please update the PR description since this is no longer a placeholder?

@isVoid isVoid linked an issue May 30, 2023 that may be closed by this pull request
@harrism
Copy link
Copy Markdown
Member

harrism commented May 31, 2023

/merge

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

3 - Ready for Review Ready for review by team improvement Improvement / enhancement to an existing function libcuspatial Relates to the cuSpatial C++ library non-breaking Non-breaking change

Projects

Status: Review

Development

Successfully merging this pull request may close these issues.

Refactor st_distance kernels to increase modularity

3 participants