Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Zero-copy BufMessageReader #1753

Merged
merged 101 commits into from
Dec 30, 2024
Merged

feat: Zero-copy BufMessageReader #1753

merged 101 commits into from
Dec 30, 2024

Conversation

gatesn
Copy link
Contributor

@gatesn gatesn commented Dec 29, 2024

I suppose this should really be called "less copy"

We still copy more than we need to, but that requires a change to VortexReadAt to take a bytes::BufMut by ownership, allowing us to pass in pre-aligned buffers.

Base automatically changed from ngates/buffers to develop December 30, 2024 16:34
@gatesn gatesn enabled auto-merge (squash) December 30, 2024 16:54
@gatesn gatesn requested a review from lwwmanning December 30, 2024 16:54
gatesn

This comment was marked as outdated.

@gatesn gatesn disabled auto-merge December 30, 2024 17:00
@gatesn gatesn enabled auto-merge (squash) December 30, 2024 17:24
@@ -300,6 +310,28 @@ impl From<Bytes> for ByteBuffer {
}
}

impl Buf for ByteBuffer {
fn remaining(&self) -> usize {
Copy link
Member

Choose a reason for hiding this comment

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

the semantics of this trait were a bit hard to divine without checking out the code and jumping to source

@gatesn gatesn merged commit e03d11b into develop Dec 30, 2024
20 checks passed
@gatesn gatesn deleted the ngates/zero-copy branch December 30, 2024 19:53
@lwwmanning lwwmanning changed the title Zero-copy BufMessageReader feat: Zero-copy BufMessageReader Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants