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

blockchain: Avoid unneeded view script deep copies. #2993

Merged

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Sep 7, 2022

This updates the code related to updating view entries to prevent a lot of unnecessary allocations by only deep copying the txout scripts when it is actually required due to the scripts not being the same.

@davecgh davecgh added this to the 1.8.0 milestone Sep 7, 2022
@davecgh davecgh force-pushed the blockchain_avoid_unneeded_script_deep_copies branch 2 times, most recently from 105b136 to 7d7e39b Compare September 7, 2022 21:41
This updates the code related to updating view entries to prevent a lot
of unnecessary allocations by only deep copying the txout scripts when
it is actually required due to the scripts not being the same.
@davecgh davecgh force-pushed the blockchain_avoid_unneeded_script_deep_copies branch from 7d7e39b to f410aa4 Compare September 13, 2022 09:44
@davecgh davecgh merged commit f410aa4 into decred:master Sep 13, 2022
@davecgh davecgh deleted the blockchain_avoid_unneeded_script_deep_copies branch September 13, 2022 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants