Skip to content

arrow-data: avoid allocating in get_last_run_end#8974

Merged
Dandandan merged 1 commit intoapache:mainfrom
polarsignals:asubiotto/runends
Dec 10, 2025
Merged

arrow-data: avoid allocating in get_last_run_end#8974
Dandandan merged 1 commit intoapache:mainfrom
polarsignals:asubiotto/runends

Conversation

@asubiotto
Copy link
Copy Markdown
Contributor

The previous code called Buffer::from to get typed_data, which allocates a new MutableBuffer.

Which issue does this PR close?

I believe this PR is small enough to not require an issue.

Rationale for this change

Performance. This PR reduces allocations

What changes are included in this PR?

See commit

Are these changes tested?

By pre-existing tests

Are there any user-facing changes?

No

@github-actions github-actions bot added the arrow Changes to the arrow crate label Dec 9, 2025
The previous code called Buffer::from to get typed_data, which allocates a new
MutableBuffer.

Signed-off-by: Alfonso Subiotto Marques <alfonso.subiotto@polarsignals.com>
@brancz
Copy link
Copy Markdown
Contributor

brancz commented Dec 9, 2025

cc @alamb

@alamb
Copy link
Copy Markdown
Contributor

alamb commented Dec 9, 2025

Thanks @brancz -- I feel like the review queue in arrow-rs is currently pretty big. I hope to spend time tomorrow working it down. We need to find some more review capacity somewhere

Copy link
Copy Markdown
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

makes sense to me -- thanks @asubiotto

@Dandandan Dandandan merged commit 2cc8abb into apache:main Dec 10, 2025
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arrow Changes to the arrow crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants