Skip to content

Optimize sort kernels partition_validity method #7936

Closed

Description

@jhorstmann

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

The partition_validity method looks like it could be more efficient, the current code does not pre-allocate the vectors with the correct capacity based on the known null counts. It also calls Array::is_valid via dynamic dispatch, instead of first getting the NullBuffer and calling NullBuffer::is_valid, which could be inlined.

Describe the solution you'd like

Try to improve it and run the sort_kernels microbenchmark.

Describe alternatives you've considered

Additional context

Activity

  1. added
    enhancement
    on Jul 16, 2025
  2. added a commit that references this issue on Jul 18, 2025
    233dad3
  3. added
    arrow
    on Jul 28, 2025
  4. alamb commented on Jul 28, 2025

    @alamb
    Contributor

    label_issue.py automatically added labels {'arrow'} from #7937

  5. added
    performance
    and removed
    enhancement
    on Jul 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    arrowperformance

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions