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

Add block caching by hash and height. #119

Closed
evoskuil opened this issue Mar 3, 2017 · 1 comment
Closed

Add block caching by hash and height. #119

evoskuil opened this issue Mar 3, 2017 · 1 comment
Milestone

Comments

@evoskuil
Copy link
Member

evoskuil commented Mar 3, 2017

Similar in concept to utxo cache.
Useful as performance optimization in both validation and server API.
Cannot be easily applied to address history indexes, since key-value map changes over time.
Could be applied to spend index, but slightly more complex than tx/block.
Indexes are already efficient (apart from stealth), so the benefit is much smaller.
Transactions queries are already efficient as the data is typically located in a single page.
Blocks are very expensive even compared to txs, so the benefit is greatest.

@evoskuil evoskuil added this to the 4.0 milestone Mar 3, 2017
@evoskuil
Copy link
Member Author

Closing as not likely to be a material optimization with the exception of the last announced block.

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

1 participant