Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add *_unchecked methods #586

Open
semtexzv opened this issue Jan 12, 2023 · 1 comment
Open

Add *_unchecked methods #586

semtexzv opened this issue Jan 12, 2023 · 1 comment

Comments

@semtexzv
Copy link

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.

@seanmonstar
Copy link
Member

Have you been able to try those methods in your app, with a temporary fork? It'd be good to get some data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants