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

Align BytesMut to page boundary (4096 bytes) #607

Open
pkolaczk opened this issue Mar 20, 2023 · 2 comments
Open

Align BytesMut to page boundary (4096 bytes) #607

pkolaczk opened this issue Mar 20, 2023 · 2 comments

Comments

@pkolaczk
Copy link

Is there a way to align BytesMut to page boundary?
My app uses buffers that are a multiplicity of 4 KiB. I guess that might help with fragmentation.
The default allocator doesn't seem to align them.

@Darksonn
Copy link
Contributor

No, see #601.

@JackKelly
Copy link

PR #684 illustrates one way in which it might be possible to create a Bytes with arbitrary alignment.

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

No branches or pull requests

3 participants