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

Chain DB: use addBlock queue as BlockCache #708

Open
mrBliss opened this issue Feb 27, 2020 · 2 comments
Open

Chain DB: use addBlock queue as BlockCache #708

mrBliss opened this issue Feb 27, 2020 · 2 comments

Comments

@mrBliss
Copy link
Contributor

mrBliss commented Feb 27, 2020

In IntersectMBO/ouroboros-network#1709, we introduced a queue for ChainDb.addBlock. We can use the blocks in this queue to populate BlockCache

This might get more complicated with #709.

@edsko
Copy link
Contributor

edsko commented Feb 27, 2020

Once implemented, we should also run some experiments to find a good value for the queue size limit.

@mrBliss
Copy link
Contributor Author

mrBliss commented Feb 27, 2020

Some microbenchmarks (blocks synced in x minutes) without populating the BlockCache using the queue:

min Without queue With queue
1 ~30k ~42k
3 ~107k ~128k

@mrBliss mrBliss self-assigned this Apr 10, 2020
@mrBliss mrBliss removed their assignment Jun 30, 2020
@dnadales dnadales transferred this issue from IntersectMBO/ouroboros-network Dec 1, 2023
@dnadales dnadales moved this to 🔖 Ready in Consensus Team Backlog Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants