Skip to content

chunk_mut should not allocate #518

@TwoClocks

Description

@TwoClocks

I was surprised to discover chunk_mut doing an allocation if the buffer is full. I would think it would return a 0 length slice.

Is this intended behaviour, or an oversight? If intended why only allocate 64 ? why not os.page_size, or 64K. It seems kinda arbitrary.

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