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

Copy Bytes Alternatively #12608

Merged
merged 2 commits into from
Jul 10, 2023
Merged

Copy Bytes Alternatively #12608

merged 2 commits into from
Jul 10, 2023

Conversation

nisdas
Copy link
Member

@nisdas nisdas commented Jul 10, 2023

What type of PR is this?

Optimization

What does this PR do? Why is it needed?

We allow the option of casting a slice to a 32-byte array to directly copy it. This is so as to allow calls to runtime.mallocgc and runtime.memove to be replaced with a single call to runtime.NewObject . This particular function is executed for a large amount of times in a critical block proposal path path.

Which issues(s) does this PR fix?

Helps with #12434

Other notes for review

@nisdas nisdas requested a review from a team as a code owner July 10, 2023 08:16
@nisdas nisdas added the Ready For Review A pull request ready for code review label Jul 10, 2023
@terencechain terencechain added the Blocked Blocked by research or external factors label Jul 10, 2023
@nisdas nisdas merged commit d56a530 into develop Jul 10, 2023
@nisdas nisdas deleted the alternateCopyBytes branch July 10, 2023 11:47
@nisdas nisdas removed the Blocked Blocked by research or external factors label Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants