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

freezer: disable compression on hashes and difficulties #14

Merged
merged 3 commits into from
May 3, 2019

Conversation

holiman
Copy link

@holiman holiman commented Apr 26, 2019

See charts at ethereum#19244 (comment) . This PR disables compression on hashes and difficulties

@holiman holiman requested a review from karalabe as a code owner April 26, 2019 10:19
Copy link
Owner

@karalabe karalabe left a comment

Choose a reason for hiding this comment

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

I'm not a fan of this solution. Imho lets add a freezerCompress map[string]bool into schema.go that specifies whether specific tables should be compressed or not.

var freezerCompress = map[string]bool{
    freezerHeaderTable:     true,
    freezerHashTable:       false,
    freezerBodiesTable:     true,
    freezerReceiptTable:    true,
    freezerDifficultyTable: false,
}

@holiman
Copy link
Author

holiman commented May 3, 2019

Done, ptal

Copy link
Owner

@karalabe karalabe left a comment

Choose a reason for hiding this comment

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

Minor suggestions

@holiman
Copy link
Author

holiman commented May 3, 2019

done, ptal

@karalabe
Copy link
Owner

karalabe commented May 3, 2019

LGTM

@karalabe karalabe merged this pull request into karalabe:freezer-2 May 3, 2019
karalabe pushed a commit that referenced this pull request May 16, 2019
* freezer: disable compression on hashes and difficulties

* core/rawdb: address review concerns

* core/rawdb: address review concerns
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