Skip to content

Optimize PrimitiveBuilder::append_trusted_len_iter #7591

@alamb

Description

@alamb

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

@Dandandan noted on https://github.com/apache/arrow-rs/pull/7513/files#r2119136807:

Looking at the code - this doesn't actually really use the TrustedLen optimization.
I think it could use the same optimization as MutableBuffer::from_trusted_len

Describe the solution you'd like
Let's optimize that function!

Describe alternatives you've considered

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    arrowChanges to the arrow crateenhancementAny new improvement worthy of a entry in the changelogperformance

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions