Skip to content

Add mutable operations to BooleanBuffer (Bit*Assign)#9567

Open
Dandandan wants to merge 5 commits intoapache:mainfrom
Dandandan:add_mutable
Open

Add mutable operations to BooleanBuffer (Bit*Assign)#9567
Dandandan wants to merge 5 commits intoapache:mainfrom
Dandandan:add_mutable

Conversation

@Dandandan
Copy link
Contributor

@Dandandan Dandandan commented Mar 17, 2026

Which issue does this PR close?

  • Closes #NNN.

Rationale for this change

I want to avoid allocating a new buffer when doing &.
We can use &= this way.

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added the arrow Changes to the arrow crate label Mar 17, 2026
@Dandandan Dandandan changed the title Add mutable operations to BooleanBuffer Add mutable operations to BooleanBuffer (Bit*Assign) Mar 17, 2026
Copy link
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.

The code looks good to me -- thanks @Dandandan

I do think we need some tests and some additional documentation would help

Here is a proposal:

self.buffer.claim(pool);
}

/// Apply a bitwise binary operation in-place, avoiding allocation if the
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we need some tests for this code

Suggestions for "Add mutable operations to BooleanBuffer (Bit*Assign)"
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.

2 participants