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

feat req: Partial Serialization #20

Open
Nul-led opened this issue Mar 2, 2024 · 1 comment
Open

feat req: Partial Serialization #20

Nul-led opened this issue Mar 2, 2024 · 1 comment

Comments

@Nul-led
Copy link

Nul-led commented Mar 2, 2024

Partial serialization and deserialization (eg through a mutable reference) would allow for further space / bandwidth optimizations by giving users the option of rolling out their own fieldwise change detection.

The exists an implementation of this behavior in serde as a reference.

https://docs.rs/serde-partial/latest/serde_partial/

@finnbear
Copy link
Member

finnbear commented Mar 2, 2024

For change detection, consider wrapping in https://crates.io/crates/diff-struct (we might make our own diffing library compatible with bitcode derive).

It would also be interesting to know if serde_partial is compatible with existing bitcode::{serialize, deserialize}.

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