Open pkolaczk opened 1 year ago
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.
No, see #601.
PR #684 illustrates one way in which it might be possible to create a Bytes with arbitrary alignment.
Bytes
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.