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

perf: use loop to copy array slice #32

Open
malik672 opened this issue Feb 12, 2025 · 2 comments
Open

perf: use loop to copy array slice #32

malik672 opened this issue Feb 12, 2025 · 2 comments

Comments

@malik672
Copy link

Image

here we used copy from slice to copy a slice of the array for this method a loop to copy the element is 100% more efficeint than what we are currently using right now

@malik672
Copy link
Author

or just make everything unsafe

@michaelsproul
Copy link
Member

do you have some benchmark numbers/a PR?

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