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

Improve snapshot parsing performance by ~2.5x #1408

Merged
merged 2 commits into from
Jan 31, 2022
Merged

Conversation

lemmih
Copy link
Contributor

@lemmih lemmih commented Jan 31, 2022

Summary of changes
Changes introduced in this pull request:

  • Set RocksDB parallelism to num_cpus.
  • Increase batch sizes to 10k.
  • Increase write buffer size to 256MB.
  • Reduce progress bar update frequency to 2hz.

Reference issue to close (if applicable)

Closes #1406

Other information and links

There is still a lot of improvements to be made. This PR just collects the low hanging fruit.

On my machine, this lowers snapshot parsing from 36 minutes to 13 minutes.

@lemmih lemmih merged commit fa33881 into main Jan 31, 2022
@lemmih lemmih deleted the lemmih/faster-syncing branch January 31, 2022 18:24
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.

Identify bottleneck when loading/parsing CAR files.
3 participants