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

V0.42.9 with cache kv improvement #24

Merged

Conversation

ValarDragon
Copy link
Member

@ValarDragon ValarDragon commented Aug 28, 2021

Fix n^2 issues with the cacheKV store, and improve documentation in the process.
(Now if dirty items gets too big, just fix that. Additionally, don't use a doubly linked list as sorted data back-end, because that causes tons of n^2 overhead. Instead we use a proper B-tree for this. This is done with re-using of existing code)

@ValarDragon
Copy link
Member Author

Merging this in, as its producing correct state results and a 2x speedup on mainnet tested code.

@ValarDragon ValarDragon merged commit d961550 into v0.42.9-osmo-v2-upgrade Aug 28, 2021
@ValarDragon ValarDragon deleted the v0.42.9-with-cache-kv-improvement branch August 28, 2021 19:40
@UnityChaos
Copy link
Member

Not fully familiar with the context of the changes, but overall LGTM 👍

ValarDragon added a commit that referenced this pull request Aug 29, 2021
* use memdb for cachekv

* Remove remaining n^2 nature of CacheKV (Speedup dirtyItems)

* Delete deadcode, fix lint

Co-authored-by: mconcat <monoidconcat@gmail.com>
faddat pushed a commit that referenced this pull request Jan 18, 2023
* use memdb for cachekv

* Remove remaining n^2 nature of CacheKV (Speedup dirtyItems)

* Delete deadcode, fix lint

Co-authored-by: mconcat <monoidconcat@gmail.com>
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.

3 participants