Skip to content

[C++] Optimize Compact() of DictionaryArray for the dictionary of which only a slice is used #38247

@R-JunmingChen

Description

@R-JunmingChen

Describe the enhancement requested

It would be useful to detect usage of only a slice of the dictionary when a DictionaryArray call Compact(), so we can leverage Slice() to get compacted dictionary. This method is more efficient than Take(), which is what we currently use to obtain compacted dictionary.

Component(s)

C++

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions