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

Add DigestAs functionality #12

Merged
merged 15 commits into from
Aug 26, 2024
Merged

Add DigestAs functionality #12

merged 15 commits into from
Aug 26, 2024

Conversation

survived
Copy link
Contributor

@survived survived commented Aug 20, 2024

Add functionality to digest a field "as another type". E.g. hash map can be digested "as btree map" (implementation will convert hash map to btree map at runtime).

Other example is when we have Option<Vec<u8>>, which may be digested as Option<udigest::Bytes> which will encode vector as bytes (by default, it is digested as a list of u8, which results in a huge overhead)

Signed-off-by: Denis Varlakov <[email protected]>
Signed-off-by: Denis Varlakov <[email protected]>
Signed-off-by: Denis Varlakov <[email protected]>
Signed-off-by: Denis Varlakov <[email protected]>
Signed-off-by: Denis Varlakov <[email protected]>
Signed-off-by: Denis Varlakov <[email protected]>
@survived survived marked this pull request as ready for review August 21, 2024 14:32
@survived survived requested a review from maurges August 21, 2024 14:32
Signed-off-by: Denis Varlakov <[email protected]>
Signed-off-by: Denis Varlakov <[email protected]>
Signed-off-by: Denis Varlakov <[email protected]>
Signed-off-by: Denis Varlakov <[email protected]>
Signed-off-by: Denis Varlakov <[email protected]>
Signed-off-by: Denis Varlakov <[email protected]>
Signed-off-by: Denis Varlakov <[email protected]>
@survived survived merged commit d9d1414 into m Aug 26, 2024
15 checks passed
@survived survived deleted the udigest_as branch August 26, 2024 09:42
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

Successfully merging this pull request may close these issues.

2 participants