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

node: add cache for blockstore #136

Merged
merged 2 commits into from
Oct 15, 2021

Conversation

vgonkivs
Copy link
Member

Cached blockstore was used instead of common.

CacheOpts contains 3 params:

  • HasBloomFilterSize - size of bloom filter that will be used in blockStore (default value is 512 << 10);
  • HasBloomFilterHashes - amount of hash functions (default value is 7);
  • HasARCCacheSize - size of arc cache (default value is 64 << 10);

Closes #108

Copy link
Member

@liamsi liamsi left a comment

Choose a reason for hiding this comment

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

Thanks a lot for this! I want @Wondertan to review this as soon as he is back.
Looks good to me but I don't have any insights into potential ramifications.

Wondertan
Wondertan previously approved these changes Oct 15, 2021
Copy link
Member

@Wondertan Wondertan left a comment

Choose a reason for hiding this comment

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

A few nits, other than that looks good to me

node/p2p/bitswap.go Outdated Show resolved Hide resolved
node/p2p/bitswap.go Outdated Show resolved Hide resolved
@Wondertan Wondertan changed the title node: add cache for bitswap node: add cache for blockstore Oct 15, 2021
Copy link
Member

@Wondertan Wondertan left a comment

Choose a reason for hiding this comment

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

:shipit:

Thank you!

Copy link
Member

@liamsi liamsi left a comment

Choose a reason for hiding this comment

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

Thanks a lot for your contribution @vgonkivs 👏🏼 and thanks for the review @Wondertan

@Wondertan Wondertan merged commit 5500c6d into celestiaorg:main Oct 15, 2021
@vgonkivs vgonkivs deleted the cached-blockstore branch June 6, 2022 13:32
@vgonkivs vgonkivs restored the cached-blockstore branch June 6, 2022 13:33
@vgonkivs vgonkivs deleted the cached-blockstore branch January 9, 2023 13:45
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.

node: caching for IPFS blockstore
3 participants