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 unsafe/unchecked slicing #6900

Open
emilk opened this issue Dec 18, 2024 · 0 comments · May be fixed by #6901
Open

Add unsafe/unchecked slicing #6900

emilk opened this issue Dec 18, 2024 · 0 comments · May be fixed by #6901
Labels
enhancement Any new improvement worthy of a entry in the changelog

Comments

@emilk
Copy link
Contributor

emilk commented Dec 18, 2024

When the user has already done their own bound checking, they don't want to pay for it again. Therefore I propose the slice methods has an unsafe _unchecked version.

We used these methods in arrow2 extensively, and found the performance different to be quite significant for our use case.

@emilk emilk added the enhancement Any new improvement worthy of a entry in the changelog label Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Any new improvement worthy of a entry in the changelog
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant