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

Remove multi-threaded account seed generation #1061

Merged
merged 5 commits into from
Jan 15, 2025

Conversation

PhilippGackstatter
Copy link
Contributor

Removes the multi-threaded account seed generation which appears to be slower than the single-threaded one according to the benchmark in #1056.

Adds pprof profiler for the benchmarks to produce flamegraphs. I thought this might give some insight into where the difference between single- and multi-threaded seed generation comes, but iiuc this "on-cpu" flamegraph doesn't show context switching (as described in https://www.brendangregg.com/FlameGraphs/offcpuflamegraphs.html) and I did not go further down that rabbithole. I left the flamegraph code anyway in case it may be useful in the future, though if we don't want it I can also remove it.

closes #1056

Copy link
Contributor

@bobbinth bobbinth left a comment

Choose a reason for hiding this comment

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

Looks good! Thank you! I left a coupe of small comments inline.

objects/src/accounts/account_id/seed.rs Outdated Show resolved Hide resolved
objects/src/accounts/account_id/seed.rs Outdated Show resolved Hide resolved
@PhilippGackstatter PhilippGackstatter merged commit bb96b1a into next Jan 15, 2025
11 checks passed
@PhilippGackstatter PhilippGackstatter deleted the pgackst-single-threaded-seed-generation branch January 15, 2025 12:16
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