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

Avoid copying StellarMessage in flooding paths #4299

Merged
merged 2 commits into from
May 1, 2024

Conversation

marta-lokhova
Copy link
Contributor

@marta-lokhova marta-lokhova commented Apr 30, 2024

Follow-up addressing @bboston7's comments in #4293

I also noticed that we make unnecessary copies of StellarMessage in places like SCP and transaction flooding; since we're flooding hundreds to thousands of messages constantly, these can add up to a tangible overhead.

Copy link
Contributor

@bboston7 bboston7 left a comment

Choose a reason for hiding this comment

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

Looks great, thanks! Good catch with those other additional copies.

@marta-lokhova marta-lokhova self-assigned this Apr 30, 2024
@marta-lokhova marta-lokhova requested a review from graydon May 1, 2024 04:36
@graydon
Copy link
Contributor

graydon commented May 1, 2024

r+ dca05af

@latobarita latobarita merged commit d2b09ec into stellar:master May 1, 2024
15 checks passed
@marta-lokhova marta-lokhova deleted the minor_perf_followup branch June 1, 2024 00:23
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.

None yet

4 participants