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 an option to create MemDB iterators with no Mutex for the CacheKVStore #187

Merged
merged 2 commits into from
Oct 10, 2021

Conversation

ValarDragon
Copy link
Contributor

@ValarDragon ValarDragon commented Sep 11, 2021

This is what we should be using in the SDK for the memDB CacheKVStore invocation there, to get the same guarantees around iterator closing as is present now. (Also this is just faster)

After this, I'll submit a PR that should significantly improve performance of Next operation. (Removes lots of channel overhead)

@codecov
Copy link

codecov bot commented Sep 11, 2021

Codecov Report

Merging #187 (3f78a1d) into release/0.6.x (6f9a08c) will decrease coverage by 0.19%.
The diff coverage is 50.00%.

Impacted file tree graph

@@                Coverage Diff                @@
##           release/0.6.x     #187      +/-   ##
=================================================
- Coverage          68.78%   68.58%   -0.20%     
=================================================
  Files                 27       27              
  Lines               1448     1458      +10     
=================================================
+ Hits                 996     1000       +4     
- Misses               377      383       +6     
  Partials              75       75              
Impacted Files Coverage Δ
memdb.go 69.11% <0.00%> (-6.69%) ⬇️
memdb_iterator.go 94.28% <100.00%> (+0.34%) ⬆️
Impacted Files Coverage Δ
memdb.go 69.11% <0.00%> (-6.69%) ⬇️
memdb_iterator.go 94.28% <100.00%> (+0.34%) ⬆️

Copy link
Contributor

@tac0turtle tac0turtle left a comment

Choose a reason for hiding this comment

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

Can you add a changelog entry

@github-actions
Copy link

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions
Copy link

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the Stale label Oct 10, 2021
@ValarDragon
Copy link
Contributor Author

Can someone get the workflows to run plz?

@tac0turtle
Copy link
Contributor

sorry, all looks goog

@tac0turtle tac0turtle merged commit c6724ca into tendermint:release/0.6.x Oct 10, 2021
@ValarDragon ValarDragon deleted the dev/addNoMtxMemdb branch October 10, 2021 16:43
creachadair pushed a commit that referenced this pull request Nov 9, 2021
…Store (#187)

* Add an option to create MemDB iterators with no Mutex for the CacheKVStore

* Update changelog
creachadair pushed a commit that referenced this pull request Nov 15, 2021
Revert the breaking API and package structure changes on master, and
prepare to tag a new release compatible with the previous v0.6.4 so that
normal upgrades with go get will function correctly.

The API changes in tag v0.6.5 have been preserved in the new package-reorg
branch, so that any existing dependents will continue  to work. 

Other changes since v0.6.4, including config file changes and CI updates, are 
maintained on the trunk. This also folds in the merge commit from  #187.

Co-authored-by: Dev Ojha <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants