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.
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.