Skip to content
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

perf: Provide a general fast path for arg_sort_multiple. #20444

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

coastalwhite
Copy link
Collaborator

WIP.

This makes the implementation of `arg_sort` take the fast path in `Column`
before ever going into a specific SeriesTrait implementor. This now makes that
every type has the same fast path that gets taken when sorted. It also now
allows taking the fast path when `maintain_order=True`.

This PR needed to adjust some tests because they wrongly assumed things about
the output order of the sorting when `maintain_order=False`.
@siddharth-vi
Copy link
Contributor

Seems like we will be changing current behavior of doing stable sort even when maintain_order=False( the default case).
IMO, although conceptually correct, this is a breaking change, as some users would be relying on this behavior. This is also evidenced by the fact that a lot of our tests also assumed this behavior.
Perhaps we can add a warning to users about this change ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants