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

[RocksDB] Do not fill block cache from ranged iterators #2858

Merged
merged 1 commit into from
Jul 27, 2020

Conversation

wezrule
Copy link
Contributor

@wezrule wezrule commented Jul 24, 2020

When reading a range of keys from iterators, we generally don't care about keys afterwards (such as frontiers confirmation or bulk reading at start). It can pollute the block_cache which is now prevented.

This also has some miscellaneous changes for various things I found working in this area, like using smart pointers instead of manual memory management.

@wezrule wezrule added this to the V22.0 milestone Jul 24, 2020
@wezrule wezrule self-assigned this Jul 24, 2020
@wezrule wezrule merged commit a3324c6 into nanocurrency:develop Jul 27, 2020
@wezrule wezrule deleted the fill_cache_iterator branch July 27, 2020 10:40
@zhyatt zhyatt added the quality improvements This item indicates the need for or supplies changes that improve maintainability label Nov 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
quality improvements This item indicates the need for or supplies changes that improve maintainability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants