-
Notifications
You must be signed in to change notification settings - Fork 3
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
Change API to use move
semantics or custom buffer type
#41
Comments
My concern here would be that with refc GC and preventing data copies of large blocks. If my understanding is correct there's not a shared heap, so just using We can keep the the Actually, writing this out, I realize that in this case the |
@dryajov and myself discusses this issue some more, and the We checked out a few variants on
This approach, while potentially usable strikes me as finicky and requiring getting a lot of GC details correct. It's also not future compatible with ARC/ORC either. |
Making datastore multi-threaded would pose a problem with transferring data ownership between threads. It seems we could either use
move
, or switch fromseq[byte]
to a custom buffer. I'm not sure which is better.This looks related to:
get
so that it takes a var parameter to avoid copying of data #12The text was updated successfully, but these errors were encountered: