Skip to content

BytesMut::freeze is not zero-cost #401

Open
@Jasper-Bekkers

Description

@Jasper-Bekkers

If self.kind() == KIND_VEC is true, freeze ends up calling vec.into() which appears to not be zero-cost at all, and ends up doing a huge memcpy somewhere in the bowels of Vec

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions