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

Optimize serialization/deserialization for [u8; 32] #306

Merged
merged 11 commits into from
Aug 17, 2023
Merged

Conversation

al8n
Copy link
Contributor

@al8n al8n commented Aug 16, 2023

This PR contains the optimization about ser/deser, mentioned in #304. With this change, I think we can remove
some code in #304.

The serialized result of BlockId and NodeId are the same as ethereum format.

@al8n al8n added the enhancement New feature or request label Aug 16, 2023
@al8n al8n added this to the Simulation App milestone Aug 16, 2023
@al8n al8n self-assigned this Aug 16, 2023
consensus-engine/src/util.rs Outdated Show resolved Hide resolved
consensus-engine/src/util.rs Outdated Show resolved Hide resolved
@al8n
Copy link
Contributor Author

al8n commented Aug 17, 2023

I got most of the simulation app serialization implementation in its mod without influencing other crates. If we merge this, I can remove most of the serialization code in #304.

Copy link
Collaborator

@danielSanchezQ danielSanchezQ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is much better. Also good contained PR!
Thanks!

@al8n al8n merged commit 87f49c0 into master Aug 17, 2023
2 checks passed
@jakubgs jakubgs deleted the serialize-optimize branch February 15, 2024 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants