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

blockstore: change unit of bloom filter to byte from bits #3196

Merged
merged 1 commit into from
Sep 6, 2016

Conversation

Kubuxu
Copy link
Member

@Kubuxu Kubuxu commented Sep 6, 2016

License: MIT
Signed-off-by: Jakub Sztandera [email protected]

@Kubuxu Kubuxu added status/in-progress In progress need/review Needs a review and removed status/in-progress In progress labels Sep 6, 2016
HasBloomFilterHashes int // No size, 7 is usually best, consult bloom papers
HasARCCacheSize int // 32 bytes
}

func DefaultCacheOpts() CacheOpts {
return CacheOpts{
HasBloomFilterSize: 512 * 8 * 1024,
Copy link
Member

Choose a reason for hiding this comment

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

I prefer using shift notation for these: 512 << 10

@whyrusleeping
Copy link
Member

One small nitpick, doesnt need to be addressed, LGTM

@Kubuxu
Copy link
Member Author

Kubuxu commented Sep 6, 2016

Addressed.

@whyrusleeping whyrusleeping merged commit 3950079 into version/0.4.3-rc4 Sep 6, 2016
@whyrusleeping whyrusleeping deleted the feat/config/bloombytes branch September 6, 2016 18:37
@whyrusleeping
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need/review Needs a review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants