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 handle_transaction #93

Merged
merged 3 commits into from
Oct 25, 2024
Merged

Conversation

panleone
Copy link
Member

Optimize handle_transaction

  • first commit: Avoid calling the copy assignment operator on Note struct
  • second commit: Avoid calling the copy assignment operator on UnifiedFullViewingKey struct

Copy link
Member

@Duddino Duddino left a comment

Choose a reason for hiding this comment

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

utACK.
To be really pendantic, Note::clone is a no-op because all the fields boil down to Copy structs, but it's good to not rely on this kind of assumptions.
UnifiedFullViewingKey has a String inside

@Duddino Duddino merged commit 3400f21 into PIVX-Labs:master Oct 25, 2024
1 check passed
@panleone panleone deleted the avoid_copy branch November 21, 2024 18:33
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.

2 participants