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

do not serialize the block header to get the size #2731

Merged
merged 1 commit into from
Apr 18, 2022

Conversation

JaredCorduan
Copy link
Contributor

@JaredCorduan JaredCorduan commented Apr 18, 2022

The block header already stores its serialized bytes, it is a big waste to recompute it in order to get the size.

Many thanks to @RyanGlScott for spotting this!! 🙌

@JaredCorduan JaredCorduan requested review from lehins and nc6 April 18, 2022 20:13
The block header already stores its serialized bytes, it is a big waste
to recomputed it in order to get the size.
Copy link
Collaborator

@lehins lehins left a comment

Choose a reason for hiding this comment

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

One comment, but otherwise this is a great catch

@JaredCorduan JaredCorduan merged commit 34df791 into master Apr 18, 2022
@iohk-bors iohk-bors bot deleted the jc/faster-bHeaderSize branch April 18, 2022 21:33
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