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

Arc/Rc handling clarification #682

Open
stefnotch opened this issue Nov 21, 2023 · 1 comment
Open

Arc/Rc handling clarification #682

stefnotch opened this issue Nov 21, 2023 · 1 comment

Comments

@stefnotch
Copy link

stefnotch commented Nov 21, 2023

I was wondering how bincode currently handles Arc/Rcs. In the case of a DAG (directed acyclic graph), does it duplicate the data, or does it share the data?

I did see #139 , however, I couldn't figure out what the status quo is.

I'd love it if there were a bit of documentation regarding that, similar to what rkyv has.

@VictorKoenders
Copy link
Contributor

Currently bincode simply encodes/decodes the contents of the Arc/Rc: source.

Serde by default does not implement Arc/Rc unless you enable the rc feature: https://serde.rs/feature-flags.html#rc

It would be great if someone could document this.

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

No branches or pull requests

2 participants