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

VecRef slice copying #40

Open
jorendorff opened this issue Sep 1, 2017 · 0 comments
Open

VecRef slice copying #40

jorendorff opened this issue Sep 1, 2017 · 0 comments

Comments

@jorendorff
Copy link
Owner

When I added bytevector support to Scheme, I noticed that to copy a slice of a bytevector I have to copy all the elements out into a new Vec<u8>, then hs.alloc the vector back into the heap, which copies it again. There should be a faster way to copy an in-heap vector when the element's In type is Copy.

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

1 participant