Skip to content

Add *_unchecked methods #586

@semtexzv

Description

@semtexzv

I'm using bytes in an application, where I'm repeatedly slicing to sub-parts of the bytes.
I do my own error-checking of bounds, and handle that out of the hot path.

The methods of (advance, split_off, split_to) do additional bound checking, completely trashing the register allocation.

It'd be nice to have the option to call *_unchecked methods that avoid the bound checking.

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