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

core, ethdb: use freezer batch for sync #24

Closed

Conversation

rjl493456442
Copy link

No description provided.

core/rawdb/freezer_batch.go Outdated Show resolved Hide resolved
core/rawdb/freezer_batch.go Outdated Show resolved Hide resolved
Comment on lines 1225 to 1230
if aBatch.ValueSize() > ethdb.IdealAncientBatchSize {
if err := aBatch.Write(); err != nil {
return i, err
}
aBatch.Reset()
}
Copy link
Owner

Choose a reason for hiding this comment

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

It would be really nice if we can somehow avoid having the situation where e.g. the size of the receipts trigger flushes every second 'block', which flushes even the tiny things like td. If we can allow some portions to temporarily on-disk stray ahead of other parts, then we save a lot of syscalls.
That's what we were discussing yesterday on discord.

Copy link
Author

Choose a reason for hiding this comment

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

It's a nice idea. I have to think about how to change the code.

holiman pushed a commit that referenced this pull request Oct 6, 2021
eth: disable legacy syncing on the merge interop pr for now
holiman pushed a commit that referenced this pull request Nov 26, 2022
holiman pushed a commit that referenced this pull request Jul 7, 2023
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